<!doctype html>
<html>
<head>
<meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>
<title>project-day03</title><link href='https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext' rel='stylesheet' type='text/css' /><style type='text/css'>html {overflow-x: initial !important;}:root { --node-fill: #ECECFF; --node-border: #CCCCFF; --cluster-fill: #ffffde; --cluster-border: #aaaa33; --note-fill: #fff5ad; --note-border: #aaaa33; --mermaid-color: var(--text-color); }


:root { --bg-color:#ffffff; --text-color:#333333; --select-text-bg-color:#B5D6FC; --select-text-font-color:auto; --monospace:"Lucida Console",Consolas,"Courier",monospace; --title-bar-height:20px; }
.mac-os-11 { --title-bar-height:28px; }
html { font-size: 14px; background-color: var(--bg-color); color: var(--text-color); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0px; padding: 0px; height: auto; bottom: 0px; top: 0px; left: 0px; right: 0px; font-size: 1rem; line-height: 1.42857; overflow-x: hidden; background: inherit; tab-size: 4; }
iframe { margin: auto; }
a.url { word-break: break-all; }
a:active, a:hover { outline: 0px; }
.in-text-selection, ::selection { text-shadow: none; background: var(--select-text-bg-color); color: var(--select-text-font-color); }
#write { margin: 0px auto; height: auto; width: inherit; word-break: normal; overflow-wrap: break-word; position: relative; white-space: normal; overflow-x: visible; padding-top: 36px; }
#write.first-line-indent p { text-indent: 2em; }
#write.first-line-indent li p, #write.first-line-indent p * { text-indent: 0px; }
#write.first-line-indent li { margin-left: 2em; }
.for-image #write { padding-left: 8px; padding-right: 8px; }
body.typora-export { padding-left: 30px; padding-right: 30px; }
.typora-export .footnote-line, .typora-export li, .typora-export p { white-space: pre-wrap; }
.typora-export .task-list-item input { pointer-events: none; }
@media screen and (max-width: 500px) {
  body.typora-export { padding-left: 0px; padding-right: 0px; }
  #write { padding-left: 20px; padding-right: 20px; }
  .CodeMirror-sizer { margin-left: 0px !important; }
  .CodeMirror-gutters { display: none !important; }
}
#write li > figure:last-child { margin-bottom: 0.5rem; }
#write ol, #write ul { position: relative; }
img { max-width: 100%; vertical-align: middle; image-orientation: from-image; }
button, input, select, textarea { color: inherit; font: inherit; }
input[type="checkbox"], input[type="radio"] { line-height: normal; padding: 0px; }
*, ::after, ::before { box-sizing: border-box; }
#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p, #write pre { width: inherit; }
#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p { position: relative; }
p { line-height: inherit; }
h1, h2, h3, h4, h5, h6 { break-after: avoid-page; break-inside: avoid; orphans: 4; }
p { orphans: 4; }
h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }
.md-math-block, .md-rawblock, h1, h2, h3, h4, h5, h6, p { margin-top: 1rem; margin-bottom: 1rem; }
.hidden { display: none; }
.md-blockmeta { color: rgb(204, 204, 204); font-weight: 700; font-style: italic; }
a { cursor: pointer; }
sup.md-footnote { padding: 2px 4px; background-color: rgba(238, 238, 238, 0.7); color: rgb(85, 85, 85); border-radius: 4px; cursor: pointer; }
sup.md-footnote a, sup.md-footnote a:hover { color: inherit; text-transform: inherit; text-decoration: inherit; }
#write input[type="checkbox"] { cursor: pointer; width: inherit; height: inherit; }
figure { overflow-x: auto; margin: 1.2em 0px; max-width: calc(100% + 16px); padding: 0px; }
figure > table { margin: 0px; }
tr { break-inside: avoid; break-after: auto; }
thead { display: table-header-group; }
table { border-collapse: collapse; border-spacing: 0px; width: 100%; overflow: auto; break-inside: auto; text-align: left; }
table.md-table td { min-width: 32px; }
.CodeMirror-gutters { border-right: 0px; background-color: inherit; }
.CodeMirror-linenumber { user-select: none; }
.CodeMirror { text-align: left; }
.CodeMirror-placeholder { opacity: 0.3; }
.CodeMirror pre { padding: 0px 4px; }
.CodeMirror-lines { padding: 0px; }
div.hr:focus { cursor: none; }
#write pre { white-space: pre-wrap; }
#write.fences-no-line-wrapping pre { white-space: pre; }
#write pre.ty-contain-cm { white-space: normal; }
.CodeMirror-gutters { margin-right: 4px; }
.md-fences { font-size: 0.9rem; display: block; break-inside: avoid; text-align: left; overflow: visible; white-space: pre; background: inherit; position: relative !important; }
.md-diagram-panel { width: 100%; margin-top: 10px; text-align: center; padding-top: 0px; padding-bottom: 8px; overflow-x: auto; }
#write .md-fences.mock-cm { white-space: pre-wrap; }
.md-fences.md-fences-with-lineno { padding-left: 0px; }
#write.fences-no-line-wrapping .md-fences.mock-cm { white-space: pre; overflow-x: auto; }
.md-fences.mock-cm.md-fences-with-lineno { padding-left: 8px; }
.CodeMirror-line, twitterwidget { break-inside: avoid; }
.footnotes { opacity: 0.8; font-size: 0.9rem; margin-top: 1em; margin-bottom: 1em; }
.footnotes + .footnotes { margin-top: 0px; }
.md-reset { margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: top; background: 0px 0px; text-decoration: none; text-shadow: none; float: none; position: static; width: auto; height: auto; white-space: nowrap; cursor: inherit; -webkit-tap-highlight-color: transparent; line-height: normal; font-weight: 400; text-align: left; box-sizing: content-box; direction: ltr; }
li div { padding-top: 0px; }
blockquote { margin: 1rem 0px; }
li .mathjax-block, li p { margin: 0.5rem 0px; }
li blockquote { margin: 1rem 0px; }
li { margin: 0px; position: relative; }
blockquote > :last-child { margin-bottom: 0px; }
blockquote > :first-child, li > :first-child { margin-top: 0px; }
.footnotes-area { color: rgb(136, 136, 136); margin-top: 0.714rem; padding-bottom: 0.143rem; white-space: normal; }
#write .footnote-line { white-space: pre-wrap; }
@media print {
  body, html { border: 1px solid transparent; height: 99%; break-after: avoid; break-before: avoid; font-variant-ligatures: no-common-ligatures; }
  #write { margin-top: 0px; padding-top: 0px; border-color: transparent !important; }
  .typora-export * { -webkit-print-color-adjust: exact; }
  .typora-export #write { break-after: avoid; }
  .typora-export #write::after { height: 0px; }
  .is-mac table { break-inside: avoid; }
}
.footnote-line { margin-top: 0.714em; font-size: 0.7em; }
a img, img a { cursor: pointer; }
pre.md-meta-block { font-size: 0.8rem; min-height: 0.8rem; white-space: pre-wrap; background: rgb(204, 204, 204); display: block; overflow-x: hidden; }
p > .md-image:only-child:not(.md-img-error) img, p > img:only-child { display: block; margin: auto; }
#write.first-line-indent p > .md-image:only-child:not(.md-img-error) img { left: -2em; position: relative; }
p > .md-image:only-child { display: inline-block; width: 100%; }
#write .MathJax_Display { margin: 0.8em 0px 0px; }
.md-math-block { width: 100%; }
.md-math-block:not(:empty)::after { display: none; }
.MathJax_ref { fill: currentcolor; }
[contenteditable="true"]:active, [contenteditable="true"]:focus, [contenteditable="false"]:active, [contenteditable="false"]:focus { outline: 0px; box-shadow: none; }
.md-task-list-item { position: relative; list-style-type: none; }
.task-list-item.md-task-list-item { padding-left: 0px; }
.md-task-list-item > input { position: absolute; top: 0px; left: 0px; margin-left: -1.2em; margin-top: calc(1em - 10px); border: none; }
.math { font-size: 1rem; }
.md-toc { min-height: 3.58rem; position: relative; font-size: 0.9rem; border-radius: 10px; }
.md-toc-content { position: relative; margin-left: 0px; }
.md-toc-content::after, .md-toc::after { display: none; }
.md-toc-item { display: block; color: rgb(65, 131, 196); }
.md-toc-item a { text-decoration: none; }
.md-toc-inner:hover { text-decoration: underline; }
.md-toc-inner { display: inline-block; cursor: pointer; }
.md-toc-h1 .md-toc-inner { margin-left: 0px; font-weight: 700; }
.md-toc-h2 .md-toc-inner { margin-left: 2em; }
.md-toc-h3 .md-toc-inner { margin-left: 4em; }
.md-toc-h4 .md-toc-inner { margin-left: 6em; }
.md-toc-h5 .md-toc-inner { margin-left: 8em; }
.md-toc-h6 .md-toc-inner { margin-left: 10em; }
@media screen and (max-width: 48em) {
  .md-toc-h3 .md-toc-inner { margin-left: 3.5em; }
  .md-toc-h4 .md-toc-inner { margin-left: 5em; }
  .md-toc-h5 .md-toc-inner { margin-left: 6.5em; }
  .md-toc-h6 .md-toc-inner { margin-left: 8em; }
}
a.md-toc-inner { font-size: inherit; font-style: inherit; font-weight: inherit; line-height: inherit; }
.footnote-line a:not(.reversefootnote) { color: inherit; }
.md-attr { display: none; }
.md-fn-count::after { content: "."; }
code, pre, samp, tt { font-family: var(--monospace); }
kbd { margin: 0px 0.1em; padding: 0.1em 0.6em; font-size: 0.8em; color: rgb(36, 39, 41); background: rgb(255, 255, 255); border: 1px solid rgb(173, 179, 185); border-radius: 3px; box-shadow: rgba(12, 13, 14, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset; white-space: nowrap; vertical-align: middle; }
.md-comment { color: rgb(162, 127, 3); opacity: 0.8; font-family: var(--monospace); }
code { text-align: left; vertical-align: initial; }
a.md-print-anchor { white-space: pre !important; border-width: initial !important; border-style: none !important; border-color: initial !important; display: inline-block !important; position: absolute !important; width: 1px !important; right: 0px !important; outline: 0px !important; background: 0px 0px !important; text-decoration: initial !important; text-shadow: initial !important; }
.md-inline-math .MathJax_SVG .noError { display: none !important; }
.html-for-mac .inline-math-svg .MathJax_SVG { vertical-align: 0.2px; }
.md-math-block .MathJax_SVG_Display { text-align: center; margin: 0px; position: relative; text-indent: 0px; max-width: none; max-height: none; min-height: 0px; min-width: 100%; width: auto; overflow-y: hidden; display: block !important; }
.MathJax_SVG_Display, .md-inline-math .MathJax_SVG_Display { width: auto; margin: inherit; display: inline-block !important; }
.MathJax_SVG .MJX-monospace { font-family: var(--monospace); }
.MathJax_SVG .MJX-sans-serif { font-family: sans-serif; }
.MathJax_SVG { display: inline; font-style: normal; font-weight: 400; line-height: normal; zoom: 90%; text-indent: 0px; text-align: left; text-transform: none; letter-spacing: normal; word-spacing: normal; overflow-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; padding: 0px; margin: 0px; }
.MathJax_SVG * { transition: none 0s ease 0s; }
.MathJax_SVG_Display svg { vertical-align: middle !important; margin-bottom: 0px !important; margin-top: 0px !important; }
.os-windows.monocolor-emoji .md-emoji { font-family: "Segoe UI Symbol", sans-serif; }
.md-diagram-panel > svg { max-width: 100%; }
[lang="flow"] svg, [lang="mermaid"] svg { max-width: 100%; height: auto; }
[lang="mermaid"] .node text { font-size: 1rem; }
table tr th { border-bottom: 0px; }
video { max-width: 100%; display: block; margin: 0px auto; }
iframe { max-width: 100%; width: 100%; border: none; }
.highlight td, .highlight tr { border: 0px; }
mark { background: rgb(255, 255, 0); color: rgb(0, 0, 0); }
.md-html-inline .md-plain, .md-html-inline strong, mark .md-inline-math, mark strong { color: inherit; }
mark .md-meta { color: rgb(0, 0, 0); opacity: 0.3 !important; }
@media print {
  .typora-export h1, .typora-export h2, .typora-export h3, .typora-export h4, .typora-export h5, .typora-export h6 { break-inside: avoid; }
}
.md-diagram-panel .messageText { stroke: none !important; }
.md-diagram-panel .start-state { fill: var(--node-fill); }
.md-diagram-panel .edgeLabel rect { opacity: 1 !important; }
.md-require-zoom-fix foreignobject { font-size: var(--mermaid-font-zoom); }


.CodeMirror { height: auto; }
.CodeMirror.cm-s-inner { background: inherit; }
.CodeMirror-scroll { overflow: auto hidden; z-index: 3; }
.CodeMirror-gutter-filler, .CodeMirror-scrollbar-filler { background-color: rgb(255, 255, 255); }
.CodeMirror-gutters { border-right: 1px solid rgb(221, 221, 221); background: inherit; white-space: nowrap; }
.CodeMirror-linenumber { padding: 0px 3px 0px 5px; text-align: right; color: rgb(153, 153, 153); }
.cm-s-inner .cm-keyword { color: rgb(119, 0, 136); }
.cm-s-inner .cm-atom, .cm-s-inner.cm-atom { color: rgb(34, 17, 153); }
.cm-s-inner .cm-number { color: rgb(17, 102, 68); }
.cm-s-inner .cm-def { color: rgb(0, 0, 255); }
.cm-s-inner .cm-variable { color: rgb(0, 0, 0); }
.cm-s-inner .cm-variable-2 { color: rgb(0, 85, 170); }
.cm-s-inner .cm-variable-3 { color: rgb(0, 136, 85); }
.cm-s-inner .cm-string { color: rgb(170, 17, 17); }
.cm-s-inner .cm-property { color: rgb(0, 0, 0); }
.cm-s-inner .cm-operator { color: rgb(152, 26, 26); }
.cm-s-inner .cm-comment, .cm-s-inner.cm-comment { color: rgb(170, 85, 0); }
.cm-s-inner .cm-string-2 { color: rgb(255, 85, 0); }
.cm-s-inner .cm-meta { color: rgb(85, 85, 85); }
.cm-s-inner .cm-qualifier { color: rgb(85, 85, 85); }
.cm-s-inner .cm-builtin { color: rgb(51, 0, 170); }
.cm-s-inner .cm-bracket { color: rgb(153, 153, 119); }
.cm-s-inner .cm-tag { color: rgb(17, 119, 0); }
.cm-s-inner .cm-attribute { color: rgb(0, 0, 204); }
.cm-s-inner .cm-header, .cm-s-inner.cm-header { color: rgb(0, 0, 255); }
.cm-s-inner .cm-quote, .cm-s-inner.cm-quote { color: rgb(0, 153, 0); }
.cm-s-inner .cm-hr, .cm-s-inner.cm-hr { color: rgb(153, 153, 153); }
.cm-s-inner .cm-link, .cm-s-inner.cm-link { color: rgb(0, 0, 204); }
.cm-negative { color: rgb(221, 68, 68); }
.cm-positive { color: rgb(34, 153, 34); }
.cm-header, .cm-strong { font-weight: 700; }
.cm-del { text-decoration: line-through; }
.cm-em { font-style: italic; }
.cm-link { text-decoration: underline; }
.cm-error { color: red; }
.cm-invalidchar { color: red; }
.cm-constant { color: rgb(38, 139, 210); }
.cm-defined { color: rgb(181, 137, 0); }
div.CodeMirror span.CodeMirror-matchingbracket { color: rgb(0, 255, 0); }
div.CodeMirror span.CodeMirror-nonmatchingbracket { color: rgb(255, 34, 34); }
.cm-s-inner .CodeMirror-activeline-background { background: inherit; }
.CodeMirror { position: relative; overflow: hidden; }
.CodeMirror-scroll { height: 100%; outline: 0px; position: relative; box-sizing: content-box; background: inherit; }
.CodeMirror-sizer { position: relative; }
.CodeMirror-gutter-filler, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-vscrollbar { position: absolute; z-index: 6; display: none; }
.CodeMirror-vscrollbar { right: 0px; top: 0px; overflow: hidden; }
.CodeMirror-hscrollbar { bottom: 0px; left: 0px; overflow: hidden; }
.CodeMirror-scrollbar-filler { right: 0px; bottom: 0px; }
.CodeMirror-gutter-filler { left: 0px; bottom: 0px; }
.CodeMirror-gutters { position: absolute; left: 0px; top: 0px; padding-bottom: 30px; z-index: 3; }
.CodeMirror-gutter { white-space: normal; height: 100%; box-sizing: content-box; padding-bottom: 30px; margin-bottom: -32px; display: inline-block; }
.CodeMirror-gutter-wrapper { position: absolute; z-index: 4; background: 0px 0px !important; border: none !important; }
.CodeMirror-gutter-background { position: absolute; top: 0px; bottom: 0px; z-index: 4; }
.CodeMirror-gutter-elt { position: absolute; cursor: default; z-index: 4; }
.CodeMirror-lines { cursor: text; }
.CodeMirror pre { border-radius: 0px; border-width: 0px; background: 0px 0px; font-family: inherit; font-size: inherit; margin: 0px; white-space: pre; overflow-wrap: normal; color: inherit; z-index: 2; position: relative; overflow: visible; }
.CodeMirror-wrap pre { overflow-wrap: break-word; white-space: pre-wrap; word-break: normal; }
.CodeMirror-code pre { border-right: 30px solid transparent; width: fit-content; }
.CodeMirror-wrap .CodeMirror-code pre { border-right: none; width: auto; }
.CodeMirror-linebackground { position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; z-index: 0; }
.CodeMirror-linewidget { position: relative; z-index: 2; overflow: auto; }
.CodeMirror-wrap .CodeMirror-scroll { overflow-x: hidden; }
.CodeMirror-measure { position: absolute; width: 100%; height: 0px; overflow: hidden; visibility: hidden; }
.CodeMirror-measure pre { position: static; }
.CodeMirror div.CodeMirror-cursor { position: absolute; visibility: hidden; border-right: none; width: 0px; }
.CodeMirror div.CodeMirror-cursor { visibility: hidden; }
.CodeMirror-focused div.CodeMirror-cursor { visibility: inherit; }
.cm-searching { background: rgba(255, 255, 0, 0.4); }
@media print {
  .CodeMirror div.CodeMirror-cursor { visibility: hidden; }
}


:root {
    --side-bar-bg-color: #fafafa;
    --control-text-color: #777;
}

@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);

/* open-sans-regular - latin-ext_latin */
  /* open-sans-italic - latin-ext_latin */
    /* open-sans-700 - latin-ext_latin */
    /* open-sans-700italic - latin-ext_latin */
  html {
    font-size: 16px;
}

body {
    font-family: "Open Sans","Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: rgb(51, 51, 51);
    line-height: 1.6;
}

#write {
    max-width: 860px;
  	margin: 0 auto;
  	padding: 30px;
    padding-bottom: 100px;
}

@media only screen and (min-width: 1400px) {
	#write {
		max-width: 1024px;
	}
}

@media only screen and (min-width: 1800px) {
	#write {
		max-width: 1200px;
	}
}

#write > ul:first-child,
#write > ol:first-child{
    margin-top: 30px;
}

a {
    color: #4183C4;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.4;
    cursor: text;
}
h1:hover a.anchor,
h2:hover a.anchor,
h3:hover a.anchor,
h4:hover a.anchor,
h5:hover a.anchor,
h6:hover a.anchor {
    text-decoration: none;
}
h1 tt,
h1 code {
    font-size: inherit;
}
h2 tt,
h2 code {
    font-size: inherit;
}
h3 tt,
h3 code {
    font-size: inherit;
}
h4 tt,
h4 code {
    font-size: inherit;
}
h5 tt,
h5 code {
    font-size: inherit;
}
h6 tt,
h6 code {
    font-size: inherit;
}
h1 {
    font-size: 2.25em;
    line-height: 1.2;
    border-bottom: 1px solid #eee;
}
h2 {
    font-size: 1.75em;
    line-height: 1.225;
    border-bottom: 1px solid #eee;
}

/*@media print {
    .typora-export h1,
    .typora-export h2 {
        border-bottom: none;
        padding-bottom: initial;
    }

    .typora-export h1::after,
    .typora-export h2::after {
        content: "";
        display: block;
        height: 100px;
        margin-top: -96px;
        border-top: 1px solid #eee;
    }
}*/

h3 {
    font-size: 1.5em;
    line-height: 1.43;
}
h4 {
    font-size: 1.25em;
}
h5 {
    font-size: 1em;
}
h6 {
   font-size: 1em;
    color: #777;
}
p,
blockquote,
ul,
ol,
dl,
table{
    margin: 0.8em 0;
}
li>ol,
li>ul {
    margin: 0 0;
}
hr {
    height: 2px;
    padding: 0;
    margin: 16px 0;
    background-color: #e7e7e7;
    border: 0 none;
    overflow: hidden;
    box-sizing: content-box;
}

li p.first {
    display: inline-block;
}
ul,
ol {
    padding-left: 30px;
}
ul:first-child,
ol:first-child {
    margin-top: 0;
}
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}
blockquote {
    border-left: 4px solid #dfe2e5;
    padding: 0 15px;
    color: #777777;
}
blockquote blockquote {
    padding-right: 0;
}
table {
    padding: 0;
    word-break: initial;
}
table tr {
    border-top: 1px solid #dfe2e5;
    margin: 0;
    padding: 0;
}
table tr:nth-child(2n),
thead {
    background-color: #f8f8f8;
}
table th {
    font-weight: bold;
    border: 1px solid #dfe2e5;
    border-bottom: 0;
    margin: 0;
    padding: 6px 13px;
}
table td {
    border: 1px solid #dfe2e5;
    margin: 0;
    padding: 6px 13px;
}
table th:first-child,
table td:first-child {
    margin-top: 0;
}
table th:last-child,
table td:last-child {
    margin-bottom: 0;
}

.CodeMirror-lines {
    padding-left: 4px;
}

.code-tooltip {
    box-shadow: 0 1px 1px 0 rgba(0,28,36,.3);
    border-top: 1px solid #eef2f2;
}

.md-fences,
code,
tt {
    border: 1px solid #e7eaed;
    background-color: #f8f8f8;
    border-radius: 3px;
    padding: 0;
    padding: 2px 4px 0px 4px;
    font-size: 0.9em;
}

code {
    background-color: #f3f4f4;
    padding: 0 2px 0 2px;
}

.md-fences {
    margin-bottom: 15px;
    margin-top: 15px;
    padding-top: 8px;
    padding-bottom: 6px;
}


.md-task-list-item > input {
  margin-left: -1.3em;
}

@media print {
    html {
        font-size: 13px;
    }
    table,
    pre {
        page-break-inside: avoid;
    }
    pre {
        word-wrap: break-word;
    }
}

.md-fences {
	background-color: #f8f8f8;
}
#write pre.md-meta-block {
	padding: 1rem;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f7f7f7;
    border: 0;
    border-radius: 3px;
    color: #777777;
    margin-top: 0 !important;
}

.mathjax-block>.code-tooltip {
	bottom: .375rem;
}

.md-mathjax-midline {
    background: #fafafa;
}

#write>h3.md-focus:before{
	left: -1.5625rem;
	top: .375rem;
}
#write>h4.md-focus:before{
	left: -1.5625rem;
	top: .285714286rem;
}
#write>h5.md-focus:before{
	left: -1.5625rem;
	top: .285714286rem;
}
#write>h6.md-focus:before{
	left: -1.5625rem;
	top: .285714286rem;
}
.md-image>.md-meta {
    /*border: 1px solid #ddd;*/
    border-radius: 3px;
    padding: 2px 0px 0px 4px;
    font-size: 0.9em;
    color: inherit;
}

.md-tag {
    color: #a7a7a7;
    opacity: 1;
}

.md-toc { 
    margin-top:20px;
    padding-bottom:20px;
}

.sidebar-tabs {
    border-bottom: none;
}

#typora-quick-open {
    border: 1px solid #ddd;
    background-color: #f8f8f8;
}

#typora-quick-open-item {
    background-color: #FAFAFA;
    border-color: #FEFEFE #e5e5e5 #e5e5e5 #eee;
    border-style: solid;
    border-width: 1px;
}

/** focus mode */
.on-focus-mode blockquote {
    border-left-color: rgba(85, 85, 85, 0.12);
}

header, .context-menu, .megamenu-content, footer{
    font-family: "Segoe UI", "Arial", sans-serif;
}

.file-node-content:hover .file-node-icon,
.file-node-content:hover .file-node-open-state{
    visibility: visible;
}

.mac-seamless-mode #typora-sidebar {
    background-color: #fafafa;
    background-color: var(--side-bar-bg-color);
}

.md-lang {
    color: #b4654d;
}

.html-for-mac .context-menu {
    --item-hover-bg-color: #E6F0FE;
}

#md-notification .btn {
    border: 0;
}

.dropdown-menu .divider {
    border-color: #e5e5e5;
}

.ty-preferences .window-content {
    background-color: #fafafa;
}

.ty-preferences .nav-group-item.active {
    color: white;
    background: #999;
}

 :root {--mermaid-font-zoom:1.2em ;} 
</style>
</head>
<body class='typora-export os-windows'>
<div id='write'  class=''><div class='md-toc' mdtype='toc'><p class="md-toc-content" role="list"><span role="listitem" class="md-toc-item md-toc-h1" data-ref="n3"><a class="md-toc-inner" href="#一搭建cce容器集群">一、搭建CCE容器集群</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n4"><a class="md-toc-inner" href="#1k8s项目拓扑">1、k8s项目拓扑</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n8"><a class="md-toc-inner" href="#2华为云创建cce">2、华为云创建CCE</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n28"><a class="md-toc-inner" href="#3使用kubectl访问k8s-cce">3、使用kubectl访问k8s-cce</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n31"><a class="md-toc-inner" href="#4配置集群访问harbor镜像仓库">4、配置集群访问harbor镜像仓库</a></span><span role="listitem" class="md-toc-item md-toc-h1" data-ref="n33"><a class="md-toc-inner" href="#二搭建elk集群">二、搭建ELK集群</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n34"><a class="md-toc-inner" href="#1elk项目拓扑">1、ELK项目拓扑</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n36"><a class="md-toc-inner" href="#2部署es集群">2、部署ES集群</a></span><span role="listitem" class="md-toc-item md-toc-h6" data-ref="n71"><a class="md-toc-inner" href="#11-配置主机名解析">1.1 配置主机名解析</a></span><span role="listitem" class="md-toc-item md-toc-h6" data-ref="n73"><a class="md-toc-inner" href="#12-安装软件">1.2 安装软件</a></span><span role="listitem" class="md-toc-item md-toc-h6" data-ref="n75"><a class="md-toc-inner" href="#13-更改配置文件">1.3 更改配置文件</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n77"><a class="md-toc-inner" href="#3配置elb">3、配置ELB</a></span><span role="listitem" class="md-toc-item md-toc-h1" data-ref="n92"><a class="md-toc-inner" href="#三部署kibana">三、部署kibana</a></span><span role="listitem" class="md-toc-item md-toc-h4" data-ref="n94"><a class="md-toc-inner" href="#1安装kibana">1、安装kibana</a></span><span role="listitem" class="md-toc-item md-toc-h6" data-ref="n98"><a class="md-toc-inner" href="#11-配置elb">1.1 配置ELB</a></span><span role="listitem" class="md-toc-item md-toc-h6" data-ref="n100"><a class="md-toc-inner" href="#12-访问kibana">1.2 访问kibana</a></span></p></div><p>&nbsp;</p><h1><a name="一搭建cce容器集群" class="md-header-anchor"></a><span>一、搭建CCE容器集群</span></h1><h4><a name="1k8s项目拓扑" class="md-header-anchor"></a><span>1、k8s项目拓扑</span></h4><p><span>使用 Nginx 搭建 web 集群，动态页面由 PHP 和 Tomcat 集群解析</span>
<span>使用 NFS 存放网页，将访问日志存放在计算节点的 /var/weblog 目录下</span>
<span>弹性部署 PHP、Tomcat 集群服务</span></p><div class="md-diagram-panel"><svg id="mermaidChart4" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="852.4617309570312" style="max-width: 1036.99px; height: 892.462px;" viewBox="0 0 1036.9937744140625 852.4617309570312" class="md-require-zoom-fix"><style>#mermaidChart4{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.33333280351429px;fill:#333333;}#mermaidChart4 .error-icon{fill:hsl(60,100%,100%);}#mermaidChart4 .error-text{fill:rgb(0,0,0);stroke:rgb(0,0,0);}#mermaidChart4 .edge-thickness-normal{stroke-width:2px;}#mermaidChart4 .edge-thickness-thick{stroke-width:3.5px;}#mermaidChart4 .edge-pattern-solid{stroke-dasharray:0;}#mermaidChart4 .edge-pattern-dashed{stroke-dasharray:3;}#mermaidChart4 .edge-pattern-dotted{stroke-dasharray:2;}#mermaidChart4 .marker{fill:#000000;}#mermaidChart4 .marker.cross{stroke:#000000;}#mermaidChart4 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.33333280351429px;}#mermaidChart4 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaidChart4 .label text{fill:#333;}#mermaidChart4 .node rect,#mermaidChart4 .node circle,#mermaidChart4 .node ellipse,#mermaidChart4 .node polygon,#mermaidChart4 .node path{fill:#ECECFF;stroke:hsl(240,60%,86.2745098039%);stroke-width:1px;}#mermaidChart4 .node .label{text-align:center;}#mermaidChart4 .node.clickable{cursor:pointer;}#mermaidChart4 .arrowheadPath{fill:undefined;}#mermaidChart4 .edgePath .path{stroke:#000000;stroke-width:1.5px;}#mermaidChart4 .flowchart-link{stroke:#000000;fill:none;}#mermaidChart4 .edgeLabel{background-color:#f4f4f4;text-align:center;}#mermaidChart4 .edgeLabel rect{opacity:0.5;background-color:#f4f4f4;fill:#f4f4f4;}#mermaidChart4 .cluster rect{fill:hsl(60,100%,100%);stroke:hsl(60,60%,90%);stroke-width:1px;}#mermaidChart4 .cluster text{fill:rgb(0,0,0);}#mermaidChart4 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(60,100%,100%);border:1px solid undefined;border-radius:2px;pointer-events:none;z-index:100;}#mermaidChart4:root{--mermaid-font-family:sans-serif;}#mermaidChart4:root{--mermaid-alt-font-family:sans-serif;}#mermaidChart4 .I &gt; *{fill:#009000 !important;color:#ffffff !important;stroke:#f06080 !important;stroke-width:3px !important;}#mermaidChart4 .I tspan{fill:#ffffff !important;}#mermaidChart4 .NFS &gt; *{fill:#ccf !important;stroke:#f66 !important;stroke-width:3px !important;stroke-dasharray:0 !important;0 !important;}#mermaidChart4 .NFS tspan{!important;}#mermaidChart4 .User &gt; *{fill:#ccddee !important;color:#000000 !important;stroke:#555555 !important;stroke-width:3px !important;}#mermaidChart4 .User tspan{fill:#000000 !important;}#mermaidChart4 .S &gt; *{fill:#ffaa00 !important;color:#3333ff !important;stroke:#303030 !important;stroke-width:3px !important;}#mermaidChart4 .S tspan{fill:#3333ff !important;}#mermaidChart4 .Pod &gt; *{fill:#ccffbb !important;color:#000000 !important;stroke-width:3px !important;stroke-dasharray:0 !important;0 !important;}#mermaidChart4 .Pod tspan{fill:#000000 !important;}#mermaidChart4 .vPod &gt; *{fill:#aaeeaa !important;color:#000000 !important;stroke-width:3px !important;stroke:#f00000 !important;stroke-dasharray:10 !important;0 !important;}#mermaidChart4 .vPod tspan{fill:#000000 !important;}#mermaidChart4 .Kubernetes &gt; *{fill:#ffffc0 !important;color:#ff00ff !important;stroke-width:4px !important;}#mermaidChart4 .Kubernetes tspan{fill:#ff00ff !important;}#mermaidChart4 flowchart-v2{fill:apa;}</style><g transform="translate(0, 2)"><marker id="flowchart-pointEnd" class="marker flowchart" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-pointStart" class="marker flowchart" viewBox="0 0 10 10" refX="0" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-circleEnd" class="marker flowchart" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-circleStart" class="marker flowchart" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-crossEnd" class="marker cross flowchart" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-crossStart" class="marker cross flowchart" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><g class="root"><g class="clusters"><g class="cluster Kubernetes" id="K"><rect rx="0" ry="0" x="115.65624618530273" y="8" width="751.6999969482422" height="834.4617500305176"></rect><g class="cluster-label" transform="translate(451.3437385559082, 6)"><foreignObject width="80.32501220703125" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Kubernetes</span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M184.23424733607757,410.1308994293213L193.51916228506954,381.12574768066406C202.8040772340615,352.12059593200684,221.3739071320454,294.1102924346924,236.8504877304514,265.10514068603516C252.32706832885742,236.09998893737793,264.71039962768555,236.09998893737793,270.9020652770996,236.09998893737793L277.0937309265137,236.09998893737793" id="L-I-WS1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-I LE-WS1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M184.5254610973299,450.3308506011963L193.76184041944646,477.9350199699402C202.99821974156302,505.5391893386841,221.47097838579614,560.7475280761719,234.87402437457942,588.3516974449158C248.27707036336264,615.9558668136597,256.610403696696,615.9558668136597,260.7770703633626,615.9558668136597L264.9437370300293,615.9558668136597" id="L-I-WS2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-I LE-WS2" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M345.9176398002505,203.39997673034668L357.61990600521364,181.99835602442423C369.3221722101768,160.5967353185018,392.726704620103,117.7934939066569,408.5956374917328,96.39187320073445C424.4645703633626,74.99025249481201,432.797903696696,74.99025249481201,441.1312370300293,74.99025249481201C449.4645703633626,74.99025249481201,457.797903696696,74.99025249481201,466.1312370300293,74.99025249481201C474.4645703633626,74.99025249481201,482.797903696696,74.99025249481201,486.9645703633626,74.99025249481201L491.1312370300293,74.99025249481201" id="L-WS1-WEB1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-WS1 LE-WEB1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M350.29155516166435,268.8000011444092L361.26483547305844,284.9240822792053C372.23811578445265,301.04816341400146,394.18467640724094,333.29632568359375,409.3246233853018,349.4204068183899C424.4645703633626,365.54448795318604,432.797903696696,365.54448795318604,441.1312370300293,365.54448795318604C449.4645703633626,365.54448795318604,457.797903696696,365.54448795318604,466.1312370300293,365.54448795318604C474.4645703633626,365.54448795318604,482.797903696696,365.54448795318604,486.9645703633626,365.54448795318604L491.1312370300293,365.54448795318604" id="L-WS1-WEB2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-WS1 LE-WEB2" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M544.2312431335449,92.42415573722346L548.3979098002116,95.16017288074083C552.5645764668783,97.89619002425819,560.8979098002116,103.36822431129292,573.2527787767931,121.86419447681345C585.6076477533746,140.36016464233398,601.9840523732042,171.88007068634033,610.1722546831191,187.6400237083435L618.360456993034,203.39997673034668" id="L-WEB1-PS1" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-WEB1 LE-PS1" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-end="url(#flowchart-pointEnd)"></path><path d="M544.2312431335449,347.35090497864053L548.3979098002116,344.4956662963891C552.5645764668783,341.64042761413765,560.8979098002116,335.9299502496347,572.2557527259297,322.8381329439295C583.6135956516479,309.7463156382243,597.9959481697508,289.2731583913167,605.1871244288023,279.036579767863L612.3783006878538,268.8000011444092" id="L-WEB2-PS1" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-WEB2 LE-PS1" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-end="url(#flowchart-pointEnd)"></path><path d="M348.93453803947045,583.2558546066284L360.1339878712303,565.730791091919C371.33343770299007,548.2057275772095,393.7323373665097,513.1556005477905,409.0984538649362,495.63053703308105C424.4645703633626,478.1054735183716,432.797903696696,478.1054735183716,441.1312370300293,478.1054735183716C449.4645703633626,478.1054735183716,457.797903696696,478.1054735183716,466.1312370300293,478.1054735183716C474.4645703633626,478.1054735183716,482.797903696696,478.1054735183716,486.9645703633626,478.1054735183716L491.1312370300293,478.1054735183716" id="L-WS2-WEB3" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-WS2 LE-WEB3" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M346.09632356738837,648.6558790206909L357.7688091444952,669.79181543986C369.441294721602,690.9277518590292,392.7862658758157,733.1996246973673,408.62541811958914,754.3355611165365C424.4645703633626,775.4714975357056,432.797903696696,775.4714975357056,441.1312370300293,775.4714975357056C449.4645703633626,775.4714975357056,457.797903696696,775.4714975357056,466.1312370300293,775.4714975357056C474.4645703633626,775.4714975357056,482.797903696696,775.4714975357056,486.9645703633626,775.4714975357056L491.1312370300293,775.4714975357056" id="L-WS2-WEB4" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-WS2 LE-WEB4" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M544.2312431335449,495.6278638432381L548.3979098002116,498.37776784681256C552.5645764668783,501.1276718503871,560.8979098002116,506.6274798575361,572.563755180231,520.9863101573447C584.2296005602506,535.3451404571533,599.2279579869561,558.5629930496216,606.7271367003088,570.1719193458557L614.2263154136616,581.7808456420898" id="L-WEB3-PS2" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-WEB3 LE-PS2" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-end="url(#flowchart-pointEnd)"></path><path d="M544.2312431335449,757.9491072108391L548.3979098002116,755.1992032072645C552.5645764668783,752.44929920369,560.8979098002116,746.9494911965411,573.2462911719016,728.4881183374267C585.5946725435915,710.0267454783121,601.9581019536382,678.6038077672323,610.1398166586615,662.8923389116923L618.3215313636848,647.1808700561523" id="L-WEB4-PS2" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-WEB4 LE-PS2" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-end="url(#flowchart-pointEnd)"></path><path d="M655.0950559194622,203.39997673034668L662.8240042971023,190.59998067220053C670.5529526747424,177.79998461405435,686.0108494300225,152.19999249776205,697.9064644743294,139.39999643961588C709.8020795186361,126.60000038146973,718.1354128519694,126.60000038146973,726.4687461853027,126.60000038146973C734.8020795186361,126.60000038146973,743.1354128519694,126.60000038146973,753.3499959309896,126.60000038146973C763.5645790100098,126.60000038146973,775.6604118347168,126.60000038146973,781.7083282470703,126.60000038146973L787.7562446594238,126.60000038146973" id="L-PS1-PHP1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-PS1 LE-PHP1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M676.2531242370605,236.09998893737793L680.455727895101,236.09998893737793C684.6583315531412,236.09998893737793,693.063538869222,236.09998893737793,701.4328091939291,236.09998893737793C709.8020795186361,236.09998893737793,718.1354128519694,236.09998893737793,726.4687461853027,236.09998893737793C734.8020795186361,236.09998893737793,743.1354128519694,236.09998893737793,753.3499959309896,236.09998893737793C763.5645790100098,236.09998893737793,775.6604118347168,236.09998893737793,781.7083282470703,236.09998893737793L787.7562446594238,236.09998893737793" id="L-PS1-PHP2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-PS1 LE-PHP2" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M655.0950559194622,268.8000011444092L662.8240042971023,281.59999720255536C670.5529526747424,294.3999932607015,686.0108494300225,319.99998537699383,697.9064644743294,332.79998143513996C709.8020795186361,345.59997749328613,718.1354128519694,345.59997749328613,726.4687461853027,345.59997749328613C734.8020795186361,345.59997749328613,743.1354128519694,345.59997749328613,753.3499959309896,345.59997749328613C763.5645790100098,345.59997749328613,775.6604118347168,345.59997749328613,781.7083282470703,345.59997749328613L787.7562446594238,345.59997749328613" id="L-PS1-PHP3" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-PS1 LE-PHP3" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M653.9746398677664,581.7808456420898L661.8903242540224,567.8829714457194C669.8060086402785,553.985097249349,685.6373774127906,526.189348856608,697.7197284657133,512.2914746602377C709.8020795186361,498.3936004638672,718.1354128519694,498.3936004638672,726.4687461853027,498.3936004638672C734.8020795186361,498.3936004638672,743.1354128519694,498.3936004638672,751.4687461853027,498.3936004638672C759.8020795186361,498.3936004638672,768.1354128519694,498.3936004638672,772.3020795186361,498.3936004638672L776.4687461853027,498.3936004638672" id="L-PS2-TM1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-PS2 LE-TM1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M676.4687461853027,614.4808578491211L680.6354128519694,614.4808578491211C684.8020795186361,614.4808578491211,693.1354128519694,614.4808578491211,701.4687461853027,614.4808578491211C709.8020795186361,614.4808578491211,718.1354128519694,614.4808578491211,726.4687461853027,614.4808578491211C734.8020795186361,614.4808578491211,743.1354128519694,614.4808578491211,751.4687461853027,614.4808578491211C759.8020795186361,614.4808578491211,768.1354128519694,614.4808578491211,772.3020795186361,614.4808578491211L776.4687461853027,614.4808578491211" id="L-PS2-TM2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-PS2 LE-TM2" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M653.9746398677664,647.1808700561523L661.8903242540224,661.0787442525228C669.8060086402785,674.9766184488932,685.6373774127906,702.7723668416342,697.7197284657133,716.6702410380045C709.8020795186361,730.568115234375,718.1354128519694,730.568115234375,726.4687461853027,730.568115234375C734.8020795186361,730.568115234375,743.1354128519694,730.568115234375,751.4687461853027,730.568115234375C759.8020795186361,730.568115234375,768.1354128519694,730.568115234375,772.3020795186361,730.568115234375L776.4687461853027,730.568115234375" id="L-PS2-TM3" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-PS2 LE-TM3" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M544.2312431335449,68.22257914589895L548.3979098002116,67.16048363883506C552.5645764668783,66.09838813177117,560.8979098002116,63.9741971176434,576.084368387858,62.91210161057952C591.2708269755045,61.850006103515625,613.3104108174642,61.850006103515625,635.3499946594238,61.850006103515625C657.3895785013834,61.850006103515625,679.4291623433431,61.850006103515625,694.6156209309896,61.850006103515625C709.8020795186361,61.850006103515625,718.1354128519694,61.850006103515625,726.4687461853027,61.850006103515625C734.8020795186361,61.850006103515625,743.1354128519694,61.850006103515625,756.9593709309896,61.850006103515625C770.7833290100098,61.850006103515625,790.0979118347168,61.850006103515625,809.4124946594238,61.850006103515625C828.7270774841309,61.850006103515625,848.0416603088379,61.850006103515625,861.865618387858,61.850006103515625C875.6895764668783,61.850006103515625,884.0229098002116,61.850006103515625,901.659366607666,121.84583520889282C919.2958234151205,181.84166431427002,946.2354036966959,301.8333225250244,959.7051938374838,361.8291516304016L973.1749839782715,421.8249807357788" id="L-WEB1-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-WEB1 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M831.0687446594238,126.60000038146973L837.1166610717773,126.60000038146973C843.1645774841309,126.60000038146973,855.2604103088379,126.60000038146973,865.474993387858,126.60000038146973C875.6895764668783,126.60000038146973,884.0229098002116,126.60000038146973,901.659366607666,175.80416377385458C919.2958234151205,225.0083271662394,946.2354036966959,323.4166539510091,959.7051938374838,372.620817343394L973.1749839782715,421.8249807357788" id="L-PHP1-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-PHP1 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M831.0687446594238,236.09998893737793L837.1166610717773,236.09998893737793C843.1645774841309,236.09998893737793,855.2604103088379,236.09998893737793,865.474993387858,236.09998893737793C875.6895764668783,236.09998893737793,884.0229098002116,236.09998893737793,901.659366607666,267.0541542371114C919.2958234151205,298.0083195368449,946.2354036966959,359.91665013631183,959.7051938374838,390.87081543604535L973.1749839782715,421.8249807357788" id="L-PHP2-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-PHP2 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M831.0687446594238,345.59997749328613L837.1166610717773,345.59997749328613C843.1645774841309,345.59997749328613,855.2604103088379,345.59997749328613,865.474993387858,345.59997749328613C875.6895764668783,345.59997749328613,884.0229098002116,345.59997749328613,901.659366607666,358.3041447003682C919.2958234151205,371.0083119074504,946.2354036966959,396.41664632161456,959.7051938374838,409.1208135286967L973.1749839782715,421.8249807357788" id="L-PHP3-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-PHP3 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M544.2312431335449,388.6208344455508L548.3979098002116,392.2423573331657C552.5645764668783,395.86388022078063,560.8979098002116,403.10692599601043,576.084368387858,406.72844888362533C591.2708269755045,410.34997177124023,613.3104108174642,410.34997177124023,635.3499946594238,410.34997177124023C657.3895785013834,410.34997177124023,679.4291623433431,410.34997177124023,694.6156209309896,410.34997177124023C709.8020795186361,410.34997177124023,718.1354128519694,410.34997177124023,726.4687461853027,410.34997177124023C734.8020795186361,410.34997177124023,743.1354128519694,410.34997177124023,756.9593709309896,410.34997177124023C770.7833290100098,410.34997177124023,790.0979118347168,410.34997177124023,809.4124946594238,410.34997177124023C828.7270774841309,410.34997177124023,848.0416603088379,410.34997177124023,861.865618387858,410.34997177124023C875.6895764668783,410.34997177124023,884.0229098002116,410.34997177124023,901.659366607666,412.26247326533C919.2958234151205,414.17497475941974,946.2354036966959,417.9999777475993,959.7051938374838,419.912479241689L973.1749839782715,421.8249807357788" id="L-WEB2-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-WEB2 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M544.2312431335449,460.96344587220614L548.3979098002116,455.8612001887118C552.5645764668783,450.75895450521756,560.8979098002116,440.55446313822887,576.084368387858,435.4522174547346C591.2708269755045,430.34997177124023,613.3104108174642,430.34997177124023,635.3499946594238,430.34997177124023C657.3895785013834,430.34997177124023,679.4291623433431,430.34997177124023,694.6156209309896,430.34997177124023C709.8020795186361,430.34997177124023,718.1354128519694,430.34997177124023,726.4687461853027,430.34997177124023C734.8020795186361,430.34997177124023,743.1354128519694,430.34997177124023,756.9593709309896,430.34997177124023C770.7833290100098,430.34997177124023,790.0979118347168,430.34997177124023,809.4124946594238,430.34997177124023C828.7270774841309,430.34997177124023,848.0416603088379,430.34997177124023,861.865618387858,430.34997177124023C875.6895764668783,430.34997177124023,884.0229098002116,430.34997177124023,901.659366607666,428.92913993199664C919.2958234151205,427.5083080927531,946.2354036966959,424.66664441426593,959.7051938374838,423.2458125750224L973.1749839782715,421.8249807357788" id="L-WEB3-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-WEB3 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M842.3562431335449,498.3936004638672L846.5229098002116,498.3936004638672C850.6895764668783,498.3936004638672,859.0229098002116,498.3936004638672,867.3562431335449,498.3936004638672C875.6895764668783,498.3936004638672,884.0229098002116,498.3936004638672,901.659366607666,485.6321638425191C919.2958234151205,472.8707272211711,946.2354036966959,447.3478539784749,959.7051938374838,434.5864173571269L973.1749839782715,421.8249807357788" id="L-TM1-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-TM1 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M842.3562431335449,614.4808578491211L846.5229098002116,614.4808578491211C850.6895764668783,614.4808578491211,859.0229098002116,614.4808578491211,867.3562431335449,614.4808578491211C875.6895764668783,614.4808578491211,884.0229098002116,614.4808578491211,901.659366607666,582.3715449968973C919.2958234151205,550.2622321446737,946.2354036966959,486.04360644022626,959.7051938374838,453.9342935880025L973.1749839782715,421.8249807357788" id="L-TM2-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-TM2 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M842.3562431335449,730.568115234375L846.5229098002116,730.568115234375C850.6895764668783,730.568115234375,859.0229098002116,730.568115234375,867.3562431335449,730.568115234375C875.6895764668783,730.568115234375,884.0229098002116,730.568115234375,901.659366607666,679.1109261512756C919.2958234151205,627.6537370681763,946.2354036966959,524.7393589019775,959.7051938374838,473.2821698188782L973.1749839782715,421.8249807357788" id="L-TM3-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-TM3 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M544.2312431335449,787.3895106479549L548.3979098002116,789.2598828611294C552.5645764668783,791.1302550743039,560.8979098002116,794.8709995006529,576.084368387858,796.7413717138274C591.2708269755045,798.611743927002,613.3104108174642,798.611743927002,635.3499946594238,798.611743927002C657.3895785013834,798.611743927002,679.4291623433431,798.611743927002,694.6156209309896,798.611743927002C709.8020795186361,798.611743927002,718.1354128519694,798.611743927002,726.4687461853027,798.611743927002C734.8020795186361,798.611743927002,743.1354128519694,798.611743927002,756.9593709309896,798.611743927002C770.7833290100098,798.611743927002,790.0979118347168,798.611743927002,809.4124946594238,798.611743927002C828.7270774841309,798.611743927002,848.0416603088379,798.611743927002,861.865618387858,798.611743927002C875.6895764668783,798.611743927002,884.0229098002116,798.611743927002,901.659366607666,735.8139500617981C919.2958234151205,673.0161561965942,946.2354036966959,547.4205684661865,959.7051938374838,484.62277460098267L973.1749839782715,421.8249807357788" id="L-WEB4-NFS" class=" edge-thickness-normal edge-pattern-dotted flowchart-link LS-WEB4 LE-NFS" style="fill:none;stroke-width:2px;stroke-dasharray:3;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path><path d="M65.65624809265137,430.2308750152588L69.82291444142659,430.2308750152588C73.98958079020183,430.2308750152588,82.32291348775227,430.2308750152588,90.65624650319417,430.2308750152588C98.98957951863606,430.2308750152588,107.3229128519694,430.2308750152588,115.65624618530273,430.2308750152588C123.98957951863606,430.2308750152588,132.3229128519694,430.2308750152588,136.48957951863608,430.2308750152588L140.65624618530273,430.2308750152588" id="L-U-I" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-U LE-I" style="fill:none;" marker-start="url(#flowchart-circleStart)" marker-end="url(#flowchart-circleEnd)"></path></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default S" id="flowchart-WS1-290" transform="translate(328.0374870300293, 236.09998893737793)"><rect rx="32.70001220703125" ry="32.70001220703125" x="-50.943756103515625" y="-32.70001220703125" width="101.88751220703125" height="65.4000244140625"></rect><g class="label" style="" transform="translate(-35.26875305175781, -25.20001220703125)"><foreignObject width="70.53750610351562" height="50.4000244140625"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx-php<br>service</span></div></foreignObject></g></g><g class="node default S" id="flowchart-WS2-291" transform="translate(328.0374870300293, 615.9558668136597)"><rect rx="32.70001220703125" ry="32.70001220703125" x="-63.09375" y="-32.70001220703125" width="126.1875" height="65.4000244140625"></rect><g class="label" style="" transform="translate(-47.41874694824219, -25.20001220703125)"><foreignObject width="94.83749389648438" height="50.4000244140625"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx-tomcat<br>service</span></div></foreignObject></g></g><g class="node default I" id="flowchart-I-292" transform="translate(177.79999160766602, 430.2308750152588)"><rect rx="20.0999755859375" ry="20.0999755859375" x="-37.14374542236328" y="-20.0999755859375" width="74.28749084472656" height="40.199951171875"></rect><g class="label" style="" transform="translate(-24.618751525878906, -12.5999755859375)"><foreignObject width="49.23750305175781" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>ingress</span></div></foreignObject></g></g><g class="node default S" id="flowchart-PS1-298" transform="translate(635.3499946594238, 236.09998893737793)"><rect rx="32.70001220703125" ry="32.70001220703125" x="-40.90312957763672" y="-32.70001220703125" width="81.80625915527344" height="65.4000244140625"></rect><g class="label" style="" transform="translate(-25.228126525878906, -25.20001220703125)"><foreignObject width="50.45625305175781" height="50.4000244140625"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>php<br>service</span></div></foreignObject></g></g><g class="node default Pod" id="flowchart-WEB1-296" label-offset-y="7.453678310467426" transform="translate(517.6812400817871, 74.99025249481201)"><path d="M 0,7.453678310467426 a 26.550003051757812,7.453678310467426 0,0,0 53.100006103515625 0 a 26.550003051757812,7.453678310467426 0,0,0 -53.100006103515625 0 l 0,47.653629482342424 a 26.550003051757812,7.453678310467426 0,0,0 53.100006103515625 0 l 0,-47.653629482342424" transform="translate(-26.550003051757812,-31.280493051638636)"></path><g class="label" style="" transform="translate(-19.050003051757812, -12.5999755859375)"><foreignObject width="38.100006103515625" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx</span></div></foreignObject></g></g><g class="node default Pod" id="flowchart-WEB2-297" label-offset-y="7.453678310467426" transform="translate(517.6812400817871, 365.54448795318604)"><path d="M 0,7.453678310467426 a 26.550003051757812,7.453678310467426 0,0,0 53.100006103515625 0 a 26.550003051757812,7.453678310467426 0,0,0 -53.100006103515625 0 l 0,47.653629482342424 a 26.550003051757812,7.453678310467426 0,0,0 53.100006103515625 0 l 0,-47.653629482342424" transform="translate(-26.550003051757812,-31.280493051638636)"></path><g class="label" style="" transform="translate(-19.050003051757812, -12.5999755859375)"><foreignObject width="38.100006103515625" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx</span></div></foreignObject></g></g><g class="node default S" id="flowchart-PS2-302" transform="translate(635.3499946594238, 614.4808578491211)"><rect rx="32.70001220703125" ry="32.70001220703125" x="-41.118751525878906" y="-32.70001220703125" width="82.23750305175781" height="65.4000244140625"></rect><g class="label" style="" transform="translate(-25.443748474121094, -25.20001220703125)"><foreignObject width="50.88749694824219" height="50.4000244140625"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>tomcat<br>service</span></div></foreignObject></g></g><g class="node default Pod" id="flowchart-WEB3-300" label-offset-y="7.453678310467426" transform="translate(517.6812400817871, 478.1054735183716)"><path d="M 0,7.453678310467426 a 26.550003051757812,7.453678310467426 0,0,0 53.100006103515625 0 a 26.550003051757812,7.453678310467426 0,0,0 -53.100006103515625 0 l 0,47.653629482342424 a 26.550003051757812,7.453678310467426 0,0,0 53.100006103515625 0 l 0,-47.653629482342424" transform="translate(-26.550003051757812,-31.280493051638636)"></path><g class="label" style="" transform="translate(-19.050003051757812, -12.5999755859375)"><foreignObject width="38.100006103515625" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx</span></div></foreignObject></g></g><g class="node default Pod" id="flowchart-WEB4-301" label-offset-y="7.453678310467426" transform="translate(517.6812400817871, 775.4714975357056)"><path d="M 0,7.453678310467426 a 26.550003051757812,7.453678310467426 0,0,0 53.100006103515625 0 a 26.550003051757812,7.453678310467426 0,0,0 -53.100006103515625 0 l 0,47.653629482342424 a 26.550003051757812,7.453678310467426 0,0,0 53.100006103515625 0 l 0,-47.653629482342424" transform="translate(-26.550003051757812,-31.280493051638636)"></path><g class="label" style="" transform="translate(-19.050003051757812, -12.5999755859375)"><foreignObject width="38.100006103515625" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx</span></div></foreignObject></g></g><g class="node default Pod" id="flowchart-PHP1-304" label-offset-y="6.433345711102859" transform="translate(809.4124946594238, 126.60000038146973)"><path d="M 0,6.433345711102859 a 21.65625,6.433345711102859 0,0,0 43.3125 0 a 21.65625,6.433345711102859 0,0,0 -43.3125 0 l 0,46.63329688297786 a 21.65625,6.433345711102859 0,0,0 43.3125 0 l 0,-46.63329688297786" transform="translate(-21.65625,-29.74999415259179)"></path><g class="label" style="" transform="translate(-14.15625, -12.5999755859375)"><foreignObject width="28.3125" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>PHP</span></div></foreignObject></g></g><g class="node default vPod" id="flowchart-PHP2-305" label-offset-y="6.433345711102859" transform="translate(809.4124946594238, 236.09998893737793)"><path d="M 0,6.433345711102859 a 21.65625,6.433345711102859 0,0,0 43.3125 0 a 21.65625,6.433345711102859 0,0,0 -43.3125 0 l 0,46.63329688297786 a 21.65625,6.433345711102859 0,0,0 43.3125 0 l 0,-46.63329688297786" transform="translate(-21.65625,-29.74999415259179)"></path><g class="label" style="" transform="translate(-14.15625, -12.5999755859375)"><foreignObject width="28.3125" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>PHP</span></div></foreignObject></g></g><g class="node default vPod" id="flowchart-PHP3-306" label-offset-y="6.433345711102859" transform="translate(809.4124946594238, 345.59997749328613)"><path d="M 0,6.433345711102859 a 21.65625,6.433345711102859 0,0,0 43.3125 0 a 21.65625,6.433345711102859 0,0,0 -43.3125 0 l 0,46.63329688297786 a 21.65625,6.433345711102859 0,0,0 43.3125 0 l 0,-46.63329688297786" transform="translate(-21.65625,-29.74999415259179)"></path><g class="label" style="" transform="translate(-14.15625, -12.5999755859375)"><foreignObject width="28.3125" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>PHP</span></div></foreignObject></g></g><g class="node default Pod" id="flowchart-TM1-308" label-offset-y="8.629100648497047" transform="translate(809.4124946594238, 498.3936004638672)"><path d="M 0,8.629100648497047 a 32.943748474121094,8.629100648497047 0,0,0 65.88749694824219 0 a 32.943748474121094,8.629100648497047 0,0,0 -65.88749694824219 0 l 0,48.829051820372044 a 32.943748474121094,8.629100648497047 0,0,0 65.88749694824219 0 l 0,-48.829051820372044" transform="translate(-32.943748474121094,-33.04362655868307)"></path><g class="label" style="" transform="translate(-25.443748474121094, -12.5999755859375)"><foreignObject width="50.88749694824219" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>tomcat</span></div></foreignObject></g></g><g class="node default vPod" id="flowchart-TM2-309" label-offset-y="8.629100648497047" transform="translate(809.4124946594238, 614.4808578491211)"><path d="M 0,8.629100648497047 a 32.943748474121094,8.629100648497047 0,0,0 65.88749694824219 0 a 32.943748474121094,8.629100648497047 0,0,0 -65.88749694824219 0 l 0,48.829051820372044 a 32.943748474121094,8.629100648497047 0,0,0 65.88749694824219 0 l 0,-48.829051820372044" transform="translate(-32.943748474121094,-33.04362655868307)"></path><g class="label" style="" transform="translate(-25.443748474121094, -12.5999755859375)"><foreignObject width="50.88749694824219" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>tomcat</span></div></foreignObject></g></g><g class="node default vPod" id="flowchart-TM3-310" label-offset-y="8.629100648497047" transform="translate(809.4124946594238, 730.568115234375)"><path d="M 0,8.629100648497047 a 32.943748474121094,8.629100648497047 0,0,0 65.88749694824219 0 a 32.943748474121094,8.629100648497047 0,0,0 -65.88749694824219 0 l 0,48.829051820372044 a 32.943748474121094,8.629100648497047 0,0,0 65.88749694824219 0 l 0,-48.829051820372044" transform="translate(-32.943748474121094,-33.04362655868307)"></path><g class="label" style="" transform="translate(-25.443748474121094, -12.5999755859375)"><foreignObject width="50.88749694824219" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>tomcat</span></div></foreignObject></g></g><g class="node default NFS" id="flowchart-NFS-321" transform="translate(973.1749839782715, 421.8249807357788)"><polygon points="10.04998779296875,0 101.58749389648438,0 111.63748168945312,-20.0999755859375 101.58749389648438,-40.199951171875 10.04998779296875,-40.199951171875 0,-20.0999755859375" class="label-container" transform="translate(-55.81874084472656,20.0999755859375)"></polygon><g class="label" style="" transform="translate(-38.26875305175781, -12.5999755859375)"><foreignObject width="76.53750610351562" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>NFS Server</span></div></foreignObject></g></g><g class="node default User" id="flowchart-U-322" transform="translate(36.82812309265137, 430.2308750152588)"><circle rx="0" ry="0" r="28.828125" width="57.65625" height="40.199951171875"></circle><g class="label" style="" transform="translate(-21.328125, -12.5999755859375)"><foreignObject width="42.65625" height="25.199951171875"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Client</span></div></foreignObject></g></g></g></g></g></svg></div><h4><a name="2华为云创建cce" class="md-header-anchor"></a><span>2、华为云创建CCE</span></h4><p><img src="images/image-20220809133642388.png" referrerpolicy="no-referrer" alt="image-20220809133642388"></p><p>&nbsp;</p><p><img src="images/image-20230628232839609.png" referrerpolicy="no-referrer" alt="image-20230628232839609"></p><p>&nbsp;</p><p><img src="images/image-20230628233218756.png" referrerpolicy="no-referrer" alt="image-20230628233218756"></p><p><img src="images/image-20230628233258395.png" referrerpolicy="no-referrer" alt="image-20230628233258395"></p><p><img src="images/image-20230628233330088.png" referrerpolicy="no-referrer" alt="image-20230628233330088"></p><p><img src="images/image-20230629094423878.png" referrerpolicy="no-referrer" alt="image-20230629094423878"></p><p>&nbsp;</p><p><img src="images/image-20230628233406138.png" referrerpolicy="no-referrer" alt="image-20230628233406138"></p><p><img src="images/image-20220914112623248.png" referrerpolicy="no-referrer" alt="image-20220914112623248"></p><p>&nbsp;</p><p><span>此集群创建好之后，还不能用，还没有节点，需要创建节点，点击上图 返回集群管理</span></p><p><img src="images/image-20220809134927635.png" referrerpolicy="no-referrer" alt="image-20220809134927635"></p><p><img src="images/image-20230628234739753.png" referrerpolicy="no-referrer" alt="image-20230628234739753"></p><p><img src="images/image-20230628234806613.png" referrerpolicy="no-referrer" alt="image-20230628234806613"></p><p><img src="images/image-20230628234842364.png" referrerpolicy="no-referrer" alt="image-20230628234842364"></p><p><img src="images/image-20230628234902656.png" referrerpolicy="no-referrer" alt="image-20230628234902656"></p><p><img src="images/image-20230628234945106.png" referrerpolicy="no-referrer" alt="image-20230628234945106"></p><p><span>此时k8s集群已经搭建完毕，有三个node节点，如果需要把集群放入到jumpserver管理，可以直接按照之前添加资产的配置放入，直接使用k8s的用户进行管理即可，使用cce搭建的k8s集群master节点是无法连接的，这里我们使用堡垒机配置kubectl管理node节点</span></p><h4><a name="3使用kubectl访问k8s-cce" class="md-header-anchor"></a><span>3、使用kubectl访问k8s-cce</span></h4><p><img src="images/image-20230628235506213.png" referrerpolicy="no-referrer" alt="image-20230628235506213"></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 8.16406px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><span><span>​</span>x</span></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">需要先下载kubectl以及配置文件，拷贝到jumpserver主机，完成配置后，即可使用kubectl访问k8s集群</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">1</span>、下载kubectl：https://dl.k8s.io/v1.28.0-alpha.3/kubernetes-client-linux-amd64.tar.gz 下载与集群版本对应的或者更新的kubectl</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">2</span>、下载kubectl配置文件：选择有效期，如5天，之后点击下载</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">3</span>、安装和配置kubectl：上传kubernetes-client-linux-amd64.tar 和 kubeconfig.yaml配置文件到jumpserver主机的/root目录下</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># tar -xf kubernetes-client-linux-amd64.tar.gz </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># mv  kubernetes/client/bin/kubectl /usr/local/bin/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">4</span>、登录到jumpserver主机，配置kubectl，若是root用户登录,可以直接执行</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># mkdir -p $HOME/.kube</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># mv  kubeconfig.yaml $HOME/.kube/config</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">5</span>、配置kubectl的tab键，节省输入时间</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># kubectl completion bash &gt;/etc/bash_completion.d/kubectl</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># exit<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span>#退出重新登录</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># kubectl get nodes<span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span>可以看到结果</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">NAME &nbsp; &nbsp; &nbsp; &nbsp;  STATUS &nbsp; ROLES &nbsp;  AGE &nbsp; VERSION</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.2 &nbsp; Ready &nbsp;  &lt;none&gt; &nbsp; 10m &nbsp; v1.23.8-r0-23.2.26</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.3 &nbsp; Ready &nbsp;  &lt;none&gt; &nbsp; 10m &nbsp; v1.23.8-r0-23.2.26</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.4 &nbsp; Ready &nbsp;  &lt;none&gt; &nbsp; 10m &nbsp; v1.23.8-r0-23.2.26</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 540px;"></div><div class="CodeMirror-gutters" style="display: none; height: 540px;"></div></div></div></pre><h4><a name="4配置集群访问harbor镜像仓库" class="md-header-anchor"></a><span>4、配置集群访问harbor镜像仓库</span></h4><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 8.16406px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">使用jumpserver主机连接三台k8s计算节点，更改hosts文件，做主机名和IP地址解析，更改daemon.json文件，使其后期可以下载镜像，三台机器都需要配置（以其中一台为例）</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">方法一：可以通过提前配置好的jumpserver资产连接，配置</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># ssh k8s@192.168.1.252 -p2222</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">按p，查看资产，输入id进入相关node节点</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[ks8@node-pkkea ~]<span class="cm-def">$ sudo</span> <span class="cm-attribute">-s</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@node-pkkea ks8]<span class="cm-comment"># vim /etc/hosts</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.100 harbor</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@node-pkkea ks8]<span class="cm-comment"># vim /etc/docker/daemon.json </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">{</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"storage-driver"</span>: <span class="cm-string">"overlay2"</span>,<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-comment">#加上, </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"insecure-registries"</span>:[<span class="cm-string">"harbor:80"</span>] &nbsp; &nbsp; &nbsp; &nbsp;<span class="cm-comment">#添加</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@node-pkkea ks8]<span class="cm-comment"># systemctl restart docker</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">方法二：也可以直接连接配置</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># kubectl get nodes<span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span>#获取节点IP地址</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">NAME &nbsp; &nbsp; &nbsp; &nbsp;  STATUS &nbsp; ROLES &nbsp;  AGE &nbsp; VERSION</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.2 &nbsp; Ready &nbsp;  &lt;none&gt; &nbsp; 40m &nbsp; v1.23.8-r0-23.2.26</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.3 &nbsp; Ready &nbsp;  &lt;none&gt; &nbsp; 40m &nbsp; v1.23.8-r0-23.2.26</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.4 &nbsp; Ready &nbsp;  &lt;none&gt; &nbsp; 40m &nbsp; v1.23.8-r0-23.2.26</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># ssh 192.168.1.2</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@node-pkkea ~]<span class="cm-comment"># vim /etc/hosts</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.100 harbor</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@node-pkkea ~]<span class="cm-comment"># vim /etc/docker/daemon.json </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">{</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"storage-driver"</span>: <span class="cm-string">"overlay2"</span>, &nbsp; &nbsp; &nbsp;<span class="cm-comment">#加上,</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp; &nbsp;<span class="cm-string">"insecure-registries"</span>:[<span class="cm-string">"harbor:80"</span>] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="cm-comment">#添加</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@node-pkkea ~]<span class="cm-comment"># systemctl restart docker</span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 743px;"></div><div class="CodeMirror-gutters" style="display: none; height: 743px;"></div></div></div></pre><h1><a name="二搭建elk集群" class="md-header-anchor"></a><span>二、搭建ELK集群</span></h1><h4><a name="1elk项目拓扑" class="md-header-anchor"></a><span>1、ELK项目拓扑</span></h4><div class="md-diagram-panel"><svg id="mermaidChart3" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="558.80078125" style="max-width: 1128.19px; height: 598.801px;" viewBox="0 0 1128.1881103515625 558.80078125" class="md-require-zoom-fix"><style>#mermaidChart3{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.33333280351429px;fill:#333333;}#mermaidChart3 .error-icon{fill:hsl(60,100%,100%);}#mermaidChart3 .error-text{fill:rgb(0,0,0);stroke:rgb(0,0,0);}#mermaidChart3 .edge-thickness-normal{stroke-width:2px;}#mermaidChart3 .edge-thickness-thick{stroke-width:3.5px;}#mermaidChart3 .edge-pattern-solid{stroke-dasharray:0;}#mermaidChart3 .edge-pattern-dashed{stroke-dasharray:3;}#mermaidChart3 .edge-pattern-dotted{stroke-dasharray:2;}#mermaidChart3 .marker{fill:#000000;}#mermaidChart3 .marker.cross{stroke:#000000;}#mermaidChart3 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:13.33333280351429px;}#mermaidChart3 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaidChart3 .label text{fill:#333;}#mermaidChart3 .node rect,#mermaidChart3 .node circle,#mermaidChart3 .node ellipse,#mermaidChart3 .node polygon,#mermaidChart3 .node path{fill:#ECECFF;stroke:hsl(240,60%,86.2745098039%);stroke-width:1px;}#mermaidChart3 .node .label{text-align:center;}#mermaidChart3 .node.clickable{cursor:pointer;}#mermaidChart3 .arrowheadPath{fill:undefined;}#mermaidChart3 .edgePath .path{stroke:#000000;stroke-width:1.5px;}#mermaidChart3 .flowchart-link{stroke:#000000;fill:none;}#mermaidChart3 .edgeLabel{background-color:#f4f4f4;text-align:center;}#mermaidChart3 .edgeLabel rect{opacity:0.5;background-color:#f4f4f4;fill:#f4f4f4;}#mermaidChart3 .cluster rect{fill:hsl(60,100%,100%);stroke:hsl(60,60%,90%);stroke-width:1px;}#mermaidChart3 .cluster text{fill:rgb(0,0,0);}#mermaidChart3 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(60,100%,100%);border:1px solid undefined;border-radius:2px;pointer-events:none;z-index:100;}#mermaidChart3:root{--mermaid-font-family:sans-serif;}#mermaidChart3:root{--mermaid-alt-font-family:sans-serif;}#mermaidChart3 .WEB &gt; *{color:#ff0000 !important;fill:#99ff99 !important;}#mermaidChart3 .WEB tspan{fill:#ff0000 !important;}#mermaidChart3 .ZONE &gt; *{fill:#ffffc0 !important;color:#ff00ff !important;}#mermaidChart3 .ZONE tspan{fill:#ff00ff !important;}#mermaidChart3 flowchart-v2{fill:apa;}</style><g transform="translate(0, 2)"><marker id="flowchart-pointEnd" class="marker flowchart" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-pointStart" class="marker flowchart" viewBox="0 0 10 10" refX="0" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-circleEnd" class="marker flowchart" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-circleStart" class="marker flowchart" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></circle></marker><marker id="flowchart-crossEnd" class="marker cross flowchart" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><marker id="flowchart-crossStart" class="marker cross flowchart" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"></path></marker><g class="root"><g class="clusters"><g class="cluster ZONE" id="Z3"><rect rx="0" ry="0" x="839.5694427490234" y="133.10009765625" width="168.518798828125" height="290.6005859375"></rect><g class="cluster-label" transform="translate(887.8944702148438, 131.10009765625)"><foreignObject width="71.86874389648438" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>ES Cluster</span></div></foreignObject></g></g><g class="cluster ZONE" id="Z2"><rect rx="0" ry="0" x="352.50634765625" y="33.10009765625" width="437.06309509277344" height="470.6005859375"></rect><g class="cluster-label" transform="translate(540.4566421508789, 31.10009765625)"><foreignObject width="61.162506103515625" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Logstash</span></div></foreignObject></g></g><g class="cluster ZONE" id="Z1"><rect rx="0" ry="0" x="8" y="8" width="294.50634765625" height="540.80078125"></rect><g class="cluster-label" transform="translate(116.8062973022461, 6)"><foreignObject width="76.89375305175781" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>k8s cluster</span></div></foreignObject></g></g><g class="cluster WEB" id="web1"><rect rx="0" ry="0" x="33" y="28" width="244.50634765625" height="110.2001953125"></rect><g class="cluster-label" transform="translate(136.2875518798828, 26)"><foreignObject width="37.931243896484375" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>web1</span></div></foreignObject></g></g><g class="cluster WEB" id="web2"><rect rx="0" ry="0" x="33" y="158.2001953125" width="244.50634765625" height="110.2001953125"></rect><g class="cluster-label" transform="translate(136.2875518798828, 156.2001953125)"><foreignObject width="37.931243896484375" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>web2</span></div></foreignObject></g></g><g class="cluster WEB" id="web3"><rect rx="0" ry="0" x="33" y="288.400390625" width="244.50634765625" height="110.2001953125"></rect><g class="cluster-label" transform="translate(136.2875518798828, 286.400390625)"><foreignObject width="37.931243896484375" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>web3</span></div></foreignObject></g></g><g class="cluster WEB" id="web4"><rect rx="0" ry="0" x="33" y="418.6005859375" width="244.50634765625" height="110.2001953125"></rect><g class="cluster-label" transform="translate(136.2875518798828, 416.6005859375)"><foreignObject width="37.931243896484375" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>web4</span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M121.15005493164062,83.10009765625L125.3167215983073,83.10009765625C129.48338826497397,83.10009765625,137.81672159830728,83.10009765625,146.15005493164062,83.10009765625C154.48338826497397,83.10009765625,162.81672159830728,83.10009765625,166.98338826497397,83.10009765625L171.15005493164062,83.10009765625" id="L-H1-F1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-H1 LE-F1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M121.15005493164062,213.30029296875L125.3167215983073,213.30029296875C129.48338826497397,213.30029296875,137.81672159830728,213.30029296875,146.15005493164062,213.30029296875C154.48338826497397,213.30029296875,162.81672159830728,213.30029296875,166.98338826497397,213.30029296875L171.15005493164062,213.30029296875" id="L-H2-F2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-H2 LE-F2" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M121.15005493164062,343.50048828125L125.3167215983073,343.50048828125C129.48338826497397,343.50048828125,137.81672159830728,343.50048828125,146.15005493164062,343.50048828125C154.48338826497397,343.50048828125,162.81672159830728,343.50048828125,166.98338826497397,343.50048828125L171.15005493164062,343.50048828125" id="L-H3-F3" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-H3 LE-F3" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M121.15005493164062,473.70068359375L125.3167215983073,473.70068359375C129.48338826497397,473.70068359375,137.81672159830728,473.70068359375,146.15005493164062,473.70068359375C154.48338826497397,473.70068359375,162.81672159830728,473.70068359375,166.98338826497397,473.70068359375L171.15005493164062,473.70068359375" id="L-H4-F4" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-H4 LE-F4" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M252.50634765625,83.10009765625L256.6730143229167,83.10009765625C260.8396809895833,83.10009765625,269.1730143229167,83.10009765625,277.50634765625,83.10009765625C285.8396809895833,83.10009765625,294.1730143229167,83.10009765625,302.50634765625,83.10009765625C310.8396809895833,83.10009765625,319.1730143229167,83.10009765625,327.50634765625,83.10009765625C335.8396809895833,83.10009765625,344.1730143229167,83.10009765625,358.23818545486824,110.0849753524234C372.3033565868198,137.0698530485968,392.1003655173897,191.03960844094362,401.99886998267465,218.02448613711704L411.8973744479596,245.00936383329042" id="L-F1-A1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-F1 LE-A1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M252.50634765625,213.30029296875L256.6730143229167,213.30029296875C260.8396809895833,213.30029296875,269.1730143229167,213.30029296875,277.50634765625,213.30029296875C285.8396809895833,213.30029296875,294.1730143229167,213.30029296875,302.50634765625,213.30029296875C310.8396809895833,213.30029296875,319.1730143229167,213.30029296875,327.50634765625,213.30029296875C335.8396809895833,213.30029296875,344.1730143229167,213.30029296875,356.27034400327767,220.55297956443064C368.3676736836387,227.8056661601113,384.2289997110274,242.3110393514726,392.1596627247217,249.56372594715324L400.0903257384161,256.8164125428339" id="L-F2-A1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-F2 LE-A1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M252.50634765625,343.50048828125L256.6730143229167,343.50048828125C260.8396809895833,343.50048828125,269.1730143229167,343.50048828125,277.50634765625,343.50048828125C285.8396809895833,343.50048828125,294.1730143229167,343.50048828125,302.50634765625,343.50048828125C310.8396809895833,343.50048828125,319.1730143229167,343.50048828125,327.50634765625,343.50048828125C335.8396809895833,343.50048828125,344.1730143229167,343.50048828125,356.27034400327767,336.41446835223604C368.3676736836387,329.328448423222,384.2289997110274,315.1564085651941,392.1596627247217,308.0703886361801L400.0903257384161,300.98436870716614" id="L-F3-A1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-F3 LE-A1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M252.50634765625,473.70068359375L256.6730143229167,473.70068359375C260.8396809895833,473.70068359375,269.1730143229167,473.70068359375,277.50634765625,473.70068359375C285.8396809895833,473.70068359375,294.1730143229167,473.70068359375,302.50634765625,473.70068359375C310.8396809895833,473.70068359375,319.1730143229167,473.70068359375,327.50634765625,473.70068359375C335.8396809895833,473.70068359375,344.1730143229167,473.70068359375,358.23818545486824,446.88247256424324C372.3033565868198,420.0642615347365,392.1003655173897,366.42783947572303,401.99886998267465,339.6096284462163L411.8973744479596,312.7914174167096" id="L-F4-A1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-F4 LE-A1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M470.51904296875006,278.900390625L474.6023763020834,278.8170572916667C478.6857096354167,278.7337239583333,486.8523763020833,278.5670572916667,495.1857096354167,278.5670572916667C503.51904296875,278.5670572916667,512.01904296875,278.7337239583333,516.26904296875,278.8170572916667L520.51904296875,278.900390625" id="L-A1-A2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A1 LE-A2" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M612.2067413330078,278.900390625L616.2900746663412,278.8170572916667C620.3734079996744,278.7337239583333,628.5400746663412,278.5670572916667,636.8734079996744,278.5670572916667C645.2067413330078,278.5670572916667,653.7067413330077,278.7337239583333,657.9567413330077,278.8170572916667L662.2067413330077,278.900390625" id="L-A2-A3" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A2 LE-A3" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M737.2288688010567,251.05981667703318L745.9522977923845,240.58321311627765C754.6757267837123,230.1066095555221,772.1225847663678,209.15340243401104,785.0126804243623,198.67679887325554C797.9027760823568,188.2001953125,806.2361094156901,188.2001953125,814.5694427490234,188.2001953125C822.9027760823568,188.2001953125,831.2361094156901,188.2001953125,839.5694427490234,188.2001953125C847.9027760823568,188.2001953125,856.2361094156901,188.2001953125,860.4027760823568,188.2001953125L864.5694427490234,188.2001953125" id="L-A3-ES1" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A3 LE-ES1" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M765.0694427490234,278.900390625L769.1527760823568,278.8170572916667C773.2361094156901,278.7337239583333,781.4027760823568,278.5670572916667,789.6527760823568,278.4837239583333C797.9027760823568,278.400390625,806.2361094156901,278.400390625,814.5694427490234,278.400390625C822.9027760823568,278.400390625,831.2361094156901,278.400390625,839.5694427490234,278.400390625C847.9027760823568,278.400390625,856.2361094156901,278.400390625,860.4027760823568,278.400390625L864.5694427490234,278.400390625" id="L-A3-ES2" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A3 LE-ES2" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M737.2288688010566,306.74096457296685L745.9522977923843,317.05090146705567C754.6757267837123,327.36083836114454,772.1225847663678,347.98071214932224,785.0126804243623,358.2906490434111C797.9027760823568,368.6005859375,806.2361094156901,368.6005859375,814.5694427490234,368.6005859375C822.9027760823568,368.6005859375,831.2361094156901,368.6005859375,839.5694427490234,368.6005859375C847.9027760823568,368.6005859375,856.2361094156901,368.6005859375,860.4027760823568,368.6005859375L864.5694427490234,368.6005859375" id="L-A3-ES3" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-A3 LE-ES3" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M983.0882415771484,188.2001953125L987.2549082438151,188.2001953125C991.4215749104818,188.2001953125,999.7549082438151,188.2001953125,1008.0882415771484,188.2001953125C1016.4215749104818,188.2001953125,1024.7549082438152,188.2001953125,1035.5318994081133,198.83806379244956C1046.3088905724117,209.47593227239915,1059.5295395676746,230.75166923229827,1066.1398640653063,241.38953771224783L1072.7501885629379,252.02740619219742" id="L-ES1-K" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-ES1 LE-K" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M983.0882415771484,278.400390625L987.2549082438151,278.400390625C991.4215749104818,278.400390625,999.7549082438151,278.400390625,1008.0882415771484,278.400390625C1016.4215749104818,278.400390625,1024.7549082438152,278.400390625,1033.0882415771484,278.400390625C1041.4215749104817,278.400390625,1049.7549082438152,278.400390625,1053.9215749104817,278.400390625L1058.0882415771484,278.400390625" id="L-ES2-K" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-ES2 LE-K" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path><path d="M983.0882415771484,368.6005859375L987.2549082438151,368.6005859375C991.4215749104818,368.6005859375,999.7549082438151,368.6005859375,1008.0882415771484,368.6005859375C1016.4215749104818,368.6005859375,1024.7549082438152,368.6005859375,1035.5318994081133,357.96271745755047C1046.3088905724117,347.3248489776009,1059.5295395676746,326.0491120177017,1066.1398640653063,315.41124353775217L1072.7501885629379,304.7733750578026" id="L-ES3-K" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-ES3 LE-K" style="fill:none;" marker-end="url(#flowchart-pointEnd)"></path></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default default" id="flowchart-ES1-238" transform="translate(923.8288421630859, 188.2001953125)"><rect rx="20.10009765625" ry="20.10009765625" x="-59.2593994140625" y="-20.10009765625" width="118.518798828125" height="40.2001953125"></rect><g class="label" style="" transform="translate(-46.734375, -12.60009765625)"><foreignObject width="93.46875" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Elasticsearch</span></div></foreignObject></g></g><g class="node default default" id="flowchart-ES2-239" transform="translate(923.8288421630859, 278.400390625)"><rect rx="20.10009765625" ry="20.10009765625" x="-59.2593994140625" y="-20.10009765625" width="118.518798828125" height="40.2001953125"></rect><g class="label" style="" transform="translate(-46.734375, -12.60009765625)"><foreignObject width="93.46875" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Elasticsearch</span></div></foreignObject></g></g><g class="node default default" id="flowchart-ES3-240" transform="translate(923.8288421630859, 368.6005859375)"><rect rx="20.10009765625" ry="20.10009765625" x="-59.2593994140625" y="-20.10009765625" width="118.518798828125" height="40.2001953125"></rect><g class="label" style="" transform="translate(-46.734375, -12.60009765625)"><foreignObject width="93.46875" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>Elasticsearch</span></div></foreignObject></g></g><g class="node default default" id="flowchart-A3-237" transform="translate(713.1380920410156, 278.400390625)"><polygon points="51.43135070800781,0 102.86270141601562,-51.43135070800781 51.43135070800781,-102.86270141601562 0,-51.43135070800781" class="label-container" transform="translate(-51.43135070800781,51.43135070800781)"></polygon><g class="label" style="" transform="translate(-23.831253051757812, -12.60009765625)"><foreignObject width="47.662506103515625" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>output</span></div></foreignObject></g></g><g class="node default default" id="flowchart-A2-236" transform="translate(565.8628921508789, 278.400390625)"><polygon points="45.843849182128906,0 91.68769836425781,-45.843849182128906 45.843849182128906,-91.68769836425781 0,-45.843849182128906" class="label-container" transform="translate(-45.843849182128906,45.843849182128906)"></polygon><g class="label" style="" transform="translate(-18.243751525878906, -12.60009765625)"><foreignObject width="36.48750305175781" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>filter</span></div></foreignObject></g></g><g class="node default default" id="flowchart-A1-235" transform="translate(423.7626953125, 278.400390625)"><polygon points="46.25634765625,0 92.5126953125,-46.25634765625 46.25634765625,-92.5126953125 0,-46.25634765625" class="label-container" transform="translate(-46.25634765625,46.25634765625)"></polygon><g class="label" style="" transform="translate(-18.65625, -12.60009765625)"><foreignObject width="37.3125" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>input</span></div></foreignObject></g></g><g class="node default default" id="flowchart-F4-230" transform="translate(211.8282012939453, 473.70068359375)"><rect rx="20.10009765625" ry="20.10009765625" x="-40.67814636230469" y="-20.10009765625" width="81.35629272460938" height="40.2001953125"></rect><g class="label" style="" transform="translate(-28.153121948242188, -12.60009765625)"><foreignObject width="56.306243896484375" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>filebeat</span></div></foreignObject></g></g><g class="node default default" id="flowchart-H4-229" transform="translate(89.57502746582031, 473.70068359375)"><rect rx="20.10009765625" ry="20.10009765625" x="-31.575027465820312" y="-20.10009765625" width="63.150054931640625" height="40.2001953125"></rect><g class="label" style="" transform="translate(-19.050003051757812, -12.60009765625)"><foreignObject width="38.100006103515625" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx</span></div></foreignObject></g></g><g class="node default default" id="flowchart-F3-228" transform="translate(211.8282012939453, 343.50048828125)"><rect rx="20.10009765625" ry="20.10009765625" x="-40.67814636230469" y="-20.10009765625" width="81.35629272460938" height="40.2001953125"></rect><g class="label" style="" transform="translate(-28.153121948242188, -12.60009765625)"><foreignObject width="56.306243896484375" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>filebeat</span></div></foreignObject></g></g><g class="node default default" id="flowchart-H3-227" transform="translate(89.57502746582031, 343.50048828125)"><rect rx="20.10009765625" ry="20.10009765625" x="-31.575027465820312" y="-20.10009765625" width="63.150054931640625" height="40.2001953125"></rect><g class="label" style="" transform="translate(-19.050003051757812, -12.60009765625)"><foreignObject width="38.100006103515625" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx</span></div></foreignObject></g></g><g class="node default default" id="flowchart-F2-226" transform="translate(211.8282012939453, 213.30029296875)"><rect rx="20.10009765625" ry="20.10009765625" x="-40.67814636230469" y="-20.10009765625" width="81.35629272460938" height="40.2001953125"></rect><g class="label" style="" transform="translate(-28.153121948242188, -12.60009765625)"><foreignObject width="56.306243896484375" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>filebeat</span></div></foreignObject></g></g><g class="node default default" id="flowchart-H2-225" transform="translate(89.57502746582031, 213.30029296875)"><rect rx="20.10009765625" ry="20.10009765625" x="-31.575027465820312" y="-20.10009765625" width="63.150054931640625" height="40.2001953125"></rect><g class="label" style="" transform="translate(-19.050003051757812, -12.60009765625)"><foreignObject width="38.100006103515625" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx</span></div></foreignObject></g></g><g class="node default default" id="flowchart-F1-224" transform="translate(211.8282012939453, 83.10009765625)"><rect rx="20.10009765625" ry="20.10009765625" x="-40.67814636230469" y="-20.10009765625" width="81.35629272460938" height="40.2001953125"></rect><g class="label" style="" transform="translate(-28.153121948242188, -12.60009765625)"><foreignObject width="56.306243896484375" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>filebeat</span></div></foreignObject></g></g><g class="node default default" id="flowchart-H1-223" transform="translate(89.57502746582031, 83.10009765625)"><rect rx="20.10009765625" ry="20.10009765625" x="-31.575027465820312" y="-20.10009765625" width="63.150054931640625" height="40.2001953125"></rect><g class="label" style="" transform="translate(-19.050003051757812, -12.60009765625)"><foreignObject width="38.100006103515625" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>nginx</span></div></foreignObject></g></g><g class="node default default" id="flowchart-K-248" transform="translate(1089.1382446289062, 278.400390625)"><circle rx="0" ry="0" r="31.050003051757812" width="62.100006103515625" height="40.2001953125"></circle><g class="label" style="" transform="translate(-23.550003051757812, -12.60009765625)"><foreignObject width="47.100006103515625" height="25.2001953125"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span>kibana</span></div></foreignObject></g></g></g></g></g></svg></div><h4><a name="2部署es集群" class="md-header-anchor"></a><span>2、部署ES集群</span></h4><figure><table><thead><tr><th><span>主机名称</span></th><th><span>IP地址</span></th><th><span>角色</span></th><th><span>规格</span></th></tr></thead><tbody><tr><td><span>es-0001</span></td><td><span>192.168.1.71</span></td><td><span>Elasticsearc节点</span></td><td><span>2CPU/4G内存</span></td></tr><tr><td><span>es-0002</span></td><td><span>192.168.1.72</span></td><td><span>Elasticsearc节点</span></td><td><span>2CPU/4G内存</span></td></tr><tr><td><span>es-0003</span></td><td><span>192.168.1.73</span></td><td><span>Elasticsearc节点</span></td><td><span>2CPU/4G内存</span></td></tr><tr><td><span>kibana</span></td><td><span>192.168.1.74</span></td><td><span>Kibana</span></td><td><span>2CPU/4G内存</span></td></tr><tr><td><span>logstash</span></td><td><span>192.168.1.75</span></td><td><span>Logstash</span></td><td><span>2CPU/4G内存</span></td></tr></tbody></table></figure><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 8.16406px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">把ELK集群机器添加到jumpserver中，使用elk登录jumpserver，可以看到elk集群相关的资产，并使用系统用户elk可以登录资产,添加资产的方式都是一样的，这里不再重复</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">搭建es集群</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">方法一：手工搭建</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># ssh elk@192.168.1.252 -p2222</span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 157px;"></div><div class="CodeMirror-gutters" style="display: none; height: 157px;"></div></div></div></pre><p><span>输入p，输入id: 1 ,进入es-0001</span></p><p><img src="images/image-20220904152723103.png" referrerpolicy="no-referrer" alt="image-20220904152723103"></p><h6><a name="11-配置主机名解析" class="md-header-anchor"></a><span>1.1 配置主机名解析</span></h6><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 8.16406px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">es-0001主机更改/etc/hosts</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[elk@es-0001 ~]<span class="cm-def">$ sudo</span> <span class="cm-attribute">-s</span> </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># vim /etc/hosts</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.71 es-0001</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.72 es-0002</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.73 es-0003</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.74 kibana</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.75 logstash</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">将最新的/etc/hosts配置文件更新到所有的云主机上</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># for i in 192.168.1.{72..75}; do scp /etc/hosts $i:/etc; done</span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 247px;"></div><div class="CodeMirror-gutters" style="display: none; height: 247px;"></div></div></div></pre><h6><a name="12-安装软件" class="md-header-anchor"></a><span>1.2 安装软件</span></h6><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 8.16406px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">yum源在跳板机jumpserver已经在前面的课程配置好，可以直接使用</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># for i in 192.168.1.{71..73}; do ssh $i yum -y install java-1.8.0-openjdk; done</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">检测JDK环境安装是否成功</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># java -version</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">es-0001，es-0002，es-0003安装elasticserach</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># for i in 192.168.1.{71..73}; do ssh $i yum -y install elasticsearch.noarch; done</span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 180px;"></div><div class="CodeMirror-gutters" style="display: none; height: 180px;"></div></div></div></pre><h6><a name="13-更改配置文件" class="md-header-anchor"></a><span>1.3 更改配置文件</span></h6><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 8.16406px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">配置es-0001</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># vim /etc/elasticsearch/elasticsearch.yml</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">17</span> cluster.name: my-es &nbsp;  <span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span> &nbsp; &nbsp; <span class="cm-comment">#集群的名称。</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">23</span> <span class="cm-builtin">node</span>.name: es-0001 &nbsp; <span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span> <span class="cm-comment">#该节点主机名。</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">55</span> network.host: <span class="cm-number">0</span>.0.0.0<span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span> &nbsp; &nbsp; <span class="cm-comment">#任意地址。 </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">68</span> discovery.zen.ping.unicast.hosts: [<span class="cm-string">"es-0001"</span>, <span class="cm-string">"es-0002"</span>, <span class="cm-string">"es-0003"</span>] <span class="cm-comment">#集群节点主机列表</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># systemctl enable --now elasticsearch </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">配置es-0002和0003</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># scp /etc/elasticsearch/elasticsearch.yml  192.168.1.72:/etc/elasticsearch/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># scp /etc/elasticsearch/elasticsearch.yml  192.168.1.73:/etc/elasticsearch/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0002 ~]<span class="cm-comment"># vim /etc/elasticsearch/elasticsearch.yml </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> <span class="cm-number">23</span> <span class="cm-builtin">node</span>.name: es-0002</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0002 ~]<span class="cm-comment"># systemctl enable --now elasticsearch </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0003 ~]<span class="cm-comment"># vim /etc/elasticsearch/elasticsearch.yml </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> <span class="cm-number">23</span> <span class="cm-builtin">node</span>.name: es-0003</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0003 ~]<span class="cm-comment"># systemctl enable --now elasticsearch </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">查看ES集群信息</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0003 ~]<span class="cm-comment"># curl -XGET http://192.168.1.71:9200/_cluster/health?pretty</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">{</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"cluster_name"</span> : <span class="cm-string">"es"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"status"</span> : <span class="cm-string">"green"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"timed_out"</span> : <span class="cm-atom">false</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"number_of_nodes"</span> : <span class="cm-number">3</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"number_of_data_nodes"</span> : <span class="cm-number">3</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"active_primary_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"active_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"relocating_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"initializing_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"unassigned_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"delayed_unassigned_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"number_of_pending_tasks"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"number_of_in_flight_fetch"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"task_max_waiting_in_queue_millis"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-string">"active_shards_percent_as_number"</span> : <span class="cm-number">100</span>.0</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">安装head插件：ES官方没有为ES提供界面管理工具，仅仅提供了后台服务。elasticsearch-head是一个为ES开发的web页面客户端工具</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">部署插件，在配置文件末尾手动添加以下内容即可</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># vim /etc/elasticsearch/elasticsearch.yml</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">...</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.enabled : <span class="cm-atom">true</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.allow-origin : <span class="cm-string">"*"</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># systemctl restart elasticsearch</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">es-0001主机安装head插件，提供访问es的页面</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># yum -y install httpd</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># scp 192.168.1.252:/root/5/public/head.tar.gz /root</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># tar -xf /root/head.tar.gz -C /var/www/html/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># vim /etc/httpd/conf/httpd.conf </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> <span class="cm-number">42</span> Listen <span class="cm-number">8081</span><span class="cm-tab" role="presentation" cm-text="	"> </span> &nbsp; <span class="cm-comment">#更改访问端口，后期其他服务会用80</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">...</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ProxyRequests off<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span> &nbsp; &nbsp; &nbsp; <span class="cm-comment">#配置文件最后追加</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ProxyPass /es/ http://127.0.0.1:9200/<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-comment">#访问/es/时，把请求转给9200</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ProxyPassReverse /es/ http://127.0.0.1:9200/</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">&lt;Location ~ <span class="cm-string">"^/es(-head)?/"</span>&gt;<span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证配置</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  Options None</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  AuthType Basic<span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证类型</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  AuthName <span class="cm-string">"Elasticsearch Admin"</span><span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证名称</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  AuthUserFile <span class="cm-string">"/var/www/webauth"</span><span class="cm-tab" role="presentation" cm-text="	"> </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证文件，存放用户名和密码的文件</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  Require valid-user</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">&lt;/Location&gt;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># htpasswd -cm /var/www/webauth admin<span class="cm-tab" role="presentation" cm-text="	"> </span><span class="cm-tab" role="presentation" cm-text="	">    </span>#c：创建文件；m：使用 MD5 加密</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">New password: <span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#密码admin</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">Re-type new password: <span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span> <span class="cm-comment">#密码admin</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">Adding password <span class="cm-keyword">for</span> user admin</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 elk]<span class="cm-comment"># systemctl enable --now httpd</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">方法二：使用playbook安装es集群</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver ~]<span class="cm-comment"># cd /root/5/public/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver public]<span class="cm-comment"># tar -xf essetup.tar.gz -C /root/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver public]<span class="cm-comment"># cd /root/essetup/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver essetup]<span class="cm-comment"># vim hosts </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.71 es-0001</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.72 es-0002</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.73 es-0003</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver essetup]<span class="cm-comment"># vim myhost </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[es]</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.[71:73]</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver essetup]<span class="cm-comment"># ansible-playbook essetup.yml </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@jumpserver essetup]<span class="cm-comment"># curl -XGET http://192.168.1.71:9200/_cluster/health?pretty<span class="cm-tab" role="presentation" cm-text="	">   </span>#查看集群状态</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">{</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"cluster_name"</span> : <span class="cm-string">"my-es"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"status"</span> : <span class="cm-string">"green"</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"timed_out"</span> : <span class="cm-atom">false</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"number_of_nodes"</span> : <span class="cm-number">3</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"number_of_data_nodes"</span> : <span class="cm-number">3</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"active_primary_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"active_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"relocating_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"initializing_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"unassigned_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"delayed_unassigned_shards"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"number_of_pending_tasks"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"number_of_in_flight_fetch"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"task_max_waiting_in_queue_millis"</span> : <span class="cm-number">0</span>,</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;<span class="cm-string">"active_shards_percent_as_number"</span> : <span class="cm-number">100</span>.0</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">部署插件，在配置文件末尾手动添加以下内容即可</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@jumpserver essetup]<span class="cm-comment"># ssh 192.168.1.71</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># vim /etc/elasticsearch/elasticsearch.yml </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">...</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.enabled : <span class="cm-atom">true</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.allow-origin : <span class="cm-string">"*"</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># systemctl restart elasticsearch</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">es-0001主机安装head插件，提供访问es的页面</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># yum -y install httpd</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># scp 192.168.1.252:/root/5/public/head.tar.gz /root</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># tar -xf /root/head.tar.gz -C /var/www/html/</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># vim /etc/httpd/conf/httpd.conf </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> <span class="cm-number">42</span> Listen <span class="cm-number">8081</span><span class="cm-tab" role="presentation" cm-text="	"> </span> &nbsp; <span class="cm-comment">#更改访问端口，后期其他服务会用80</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">...</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ProxyRequests off<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span> &nbsp; &nbsp; &nbsp; <span class="cm-comment">#配置文件最后追加</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ProxyPass /es/ http://127.0.0.1:9200/<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-comment">#访问/es/时，把请求转给9200</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ProxyPassReverse /es/ http://127.0.0.1:9200/</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">&lt;Location ~ <span class="cm-string">"^/es(-head)?/"</span>&gt;<span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证配置</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  Options None</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  AuthType Basic<span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证类型</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  AuthName <span class="cm-string">"Elasticsearch Admin"</span><span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证名称</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  AuthUserFile <span class="cm-string">"/var/www/webauth"</span><span class="cm-tab" role="presentation" cm-text="	"> </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#认证文件，存放用户名和密码的文件</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> &nbsp;  Require valid-user</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">&lt;/Location&gt;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" class="cm-tab-wrap-hack" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># htpasswd -cm /var/www/webauth admin<span class="cm-tab" role="presentation" cm-text="	">   </span><span class="cm-tab" role="presentation" cm-text="	">    </span>#c：创建文件；m：使用 MD5 加密</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">New password: <span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#密码admin</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">Re-type new password: <span class="cm-tab" role="presentation" cm-text="	">  </span><span class="cm-tab" role="presentation" cm-text="	">    </span> <span class="cm-comment">#密码admin</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">Adding password <span class="cm-keyword">for</span> user admin</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@es-0001 ~]<span class="cm-comment"># systemctl enable --now httpd</span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 3195px;"></div><div class="CodeMirror-gutters" style="display: none; height: 3195px;"></div></div></div></pre><h4><a name="3配置elb" class="md-header-anchor"></a><span>3、配置ELB</span></h4><ul><li><span>通过 ELB 映射 8081 端口，发布 es-0001 的 web 服务到互联网</span></li></ul><p><img src="images/image-20230629010143002.png" referrerpolicy="no-referrer" alt="image-20230629010143002"></p><p>&nbsp;</p><p><img src="images/image-20230629010210413.png" referrerpolicy="no-referrer" alt="image-20230629010210413"></p><p><img src="images/image-20230629010241412.png" referrerpolicy="no-referrer" alt="image-20230629010241412"></p><p><img src="images/image-20230629010310838.png" referrerpolicy="no-referrer" alt="image-20230629010310838"></p><p><img src="images/image-20230629010348032.png" referrerpolicy="no-referrer" alt="image-20230629010348032"></p><p><img src="images/image-20230629010412776.png" referrerpolicy="no-referrer" alt="image-20230629010412776"></p><p><img src="images/image-20230629010433245.png" referrerpolicy="no-referrer" alt="image-20230629010433245"></p><p><img src="images/image-20230629010522720.png" referrerpolicy="no-referrer" alt="image-20230629010522720"></p><p><span>用户名密码是自己设置的</span></p><p><img src="images/image-20230629010716495.png" referrerpolicy="no-referrer" alt="image-20230629010716495"></p><h1><a name="三部署kibana" class="md-header-anchor"></a><span>三、部署kibana</span></h1><p><span>kibana是一款开源的数据分析和可视化平台，它是Elastic Stack成员之一。可以使用Kibana对Elasticsearch索引中的数据进行搜索、查看、交互操作。可利用图表、表格等对数据进行多元化的分析和显现</span></p><h4><a name="1安装kibana" class="md-header-anchor"></a><span>1、安装kibana</span></h4><p><span>输入id：4，进入kibana主机</span></p><p><img src="images/image-20220904154446783.png" referrerpolicy="no-referrer" alt="image-20220904154446783"></p><pre spellcheck="false" class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="break-inside: unset;"><div class="CodeMirror cm-s-inner CodeMirror-wrap" lang="shell"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 8.16406px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">安装kibana软件包</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[elk@kibana ~]<span class="cm-def">$ sudo</span> <span class="cm-attribute">-s</span> </span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@kibana elk]<span class="cm-comment"># vim /etc/hosts</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.71 es-0001</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.72 es-0002</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.73 es-0003</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">192</span>.168.1.74 kibana</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@kibana elk]<span class="cm-comment"># yum -y install kibana </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">更改kibana服务配置文件</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@kibana elk]<span class="cm-comment"># vim /etc/kibana/kibana.yml </span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">2</span> server.port: <span class="cm-number">5601</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#提供服务的端口</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">7</span> server.host: <span class="cm-string">"192.168.1.74"</span> &nbsp; &nbsp; &nbsp; <span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#服务器监听地址</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">28</span> elasticsearch.hosts: [<span class="cm-string">"http://es-0001:9200"</span>] &nbsp;<span class="cm-comment">#用于查询es主机地址，集群里任选其一</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-number">113</span> i18n.locale: <span class="cm-string">"zh-CN"</span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">#这是中文</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">启动服务器并查看端口是否启用</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@kibana elk]<span class="cm-comment"># systemctl enable --now kibana</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[root@kibana elk]<span class="cm-comment"># ss -antpu | grep 5601</span></span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 405px;"></div><div class="CodeMirror-gutters" style="display: none; height: 405px;"></div></div></div></pre><h6><a name="11-配置elb" class="md-header-anchor"></a><span>1.1 配置ELB</span></h6><p><span>通过浏览器访问kibana，华为云弹性负载均衡创建监听器，并添加后端服务器。监听端口为5601，添加后端服务kibana</span></p><h6><a name="12-访问kibana" class="md-header-anchor"></a><span>1.2 访问kibana</span></h6><p><span>浏览器访问：</span><a href='http://ELB' target='_blank' class='url'>http://ELB</a><span>负载均衡IP:5601</span></p></div>
</body>
</html>